Tweak SelectMediaButton error string, accessibilityHint, and comments (#8870)
* remove isNative check from accessibilityHint * tweak grammar in error string * prettier * tweak comment
This commit is contained in:
@@ -410,7 +410,7 @@ export function SelectMediaButton({
|
|||||||
msg`You can only select one GIF at a time.`,
|
msg`You can only select one GIF at a time.`,
|
||||||
),
|
),
|
||||||
[SelectedAssetError.FileTooBig]: _(
|
[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]
|
}[error]
|
||||||
})
|
})
|
||||||
@@ -481,34 +481,17 @@ export function SelectMediaButton({
|
|||||||
label={_(
|
label={_(
|
||||||
msg({
|
msg({
|
||||||
message: `Add media to post`,
|
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}
|
style={a.p_sm}
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
shape="round"
|
shape="round"
|
||||||
|
|||||||
Reference in New Issue
Block a user