diff options
author | surfdude29 <149612116+surfdude29@users.noreply.github.com> | 2025-08-26 14:58:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-26 05:58:04 -0700 |
commit | e91a6838101c9566ce2dafaa6fe8c77293a5eba6 (patch) | |
tree | e1a9856bc094d901122afbb365ebf066744ea0c2 | |
parent | bc8e3ba30b0dd679edf88f0f6038f012b909901f (diff) | |
download | voidsky-e91a6838101c9566ce2dafaa6fe8c77293a5eba6.tar.zst |
Tweak `SelectMediaButton` error string, `accessibilityHint`, and comments (#8870)
* remove isNative check from accessibilityHint * tweak grammar in error string * prettier * tweak comment
-rw-r--r-- | src/view/com/composer/SelectMediaButton.tsx | 37 |
1 files changed, 10 insertions, 27 deletions
diff --git a/src/view/com/composer/SelectMediaButton.tsx b/src/view/com/composer/SelectMediaButton.tsx index 026d0ac19..b76a017b4 100644 --- a/src/view/com/composer/SelectMediaButton.tsx +++ b/src/view/com/composer/SelectMediaButton.tsx @@ -410,7 +410,7 @@ export function SelectMediaButton({ msg`You can only select one GIF at a time.`, ), [SelectedAssetError.FileTooBig]: _( - msg`One or more of your selected files is too large. Maximum size is 100 MB.`, + msg`One or more of your selected files are too large. Maximum size is 100 MB.`, ), }[error] }) @@ -481,34 +481,17 @@ export function SelectMediaButton({ label={_( msg({ message: `Add media to post`, - comment: `Accessibility label for button in composer to add photos or a video to a post`, + comment: `Accessibility label for button in composer to add images, a video, or a GIF to a post`, + }), + )} + accessibilityHint={_( + msg({ + message: `Opens device gallery to select up to ${plural(MAX_IMAGES, { + other: '# images', + })}, or a single video or GIF.`, + comment: `Accessibility hint for button in composer to add images, a video, or a GIF to a post. Maximum number of images that can be selected is currently 4 but may change.`, }), )} - accessibilityHint={ - isNative - ? _( - msg({ - message: `Opens device gallery to select up to ${plural( - MAX_IMAGES, - { - other: '# images', - }, - )}, or a single video.`, - comment: `Accessibility hint on native for button in composer to add images or a video to a post. Maximum number of images that can be selected is currently 4 but may change.`, - }), - ) - : _( - msg({ - message: `Opens device gallery to select up to ${plural( - MAX_IMAGES, - { - other: '# images', - }, - )}, or a single video or GIF.`, - comment: `Accessibility hint on web for button in composer to add images, a video, or a GIF to a post. Maximum number of images that can be selected is currently 4 but may change.`, - }), - ) - } style={a.p_sm} variant="ghost" shape="round" |