From 3e139304251d08e18925535a47a387d8a7bead8c Mon Sep 17 00:00:00 2001 From: btzr-io Date: Tue, 13 Jul 2021 18:23:45 -0500 Subject: [PATCH] add aria-label for modal close button (X) --- static/app-strings.json | 3 +++ ui/modal/modal.jsx | 12 +++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index d56d79474..fb8e5689e 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -2043,5 +2043,8 @@ "Trending for #Art": "Trending for #Art", "Trending for #Education": "Trending for #Education", "Trending for #Technology": "Trending for #Technology", + "Enter a @username or URL": "Enter a @username or URL", + "examples: @channel, @channel#3, https://odysee.com/@Odysee:8, lbry://@Odysee#8": "examples: @channel, @channel#3, https://odysee.com/@Odysee:8, lbry://@Odysee#8", + "Moderators": "Moderators", "--end--": "--end--" } diff --git a/ui/modal/modal.jsx b/ui/modal/modal.jsx index de99d2b67..49c31854f 100644 --- a/ui/modal/modal.jsx +++ b/ui/modal/modal.jsx @@ -14,8 +14,8 @@ type ModalProps = { abortButtonLabel?: string, confirmButtonDisabled?: boolean, abortButtonDisabled?: boolean, - onConfirmed?: any => any, - onAborted?: any => any, + onConfirmed?: (any) => any, + onAborted?: (any) => any, className?: string, children?: React.Node, extraContent?: React.Node, @@ -52,7 +52,13 @@ export function Modal(props: ModalProps) { > {title &&

{title}

} {type === 'card' && ( -