Tweak accessibility label (#8767)
* tweak accessibility label * change `alert` to `message` and add comment instead of context * tweak comment
This commit is contained in:
@@ -78,7 +78,12 @@ export const ToastContainer: React.FC<ToastContainerProps> = ({}) => {
|
|||||||
<Toast content={activeToast.content} type={activeToast.type} />
|
<Toast content={activeToast.content} type={activeToast.type} />
|
||||||
<Pressable
|
<Pressable
|
||||||
style={[a.absolute, a.inset_0]}
|
style={[a.absolute, a.inset_0]}
|
||||||
accessibilityLabel={_(msg`Dismiss toast`)}
|
accessibilityLabel={_(
|
||||||
|
msg({
|
||||||
|
message: `Dismiss message`,
|
||||||
|
comment: `Accessibility label for dismissing a toast notification`,
|
||||||
|
}),
|
||||||
|
)}
|
||||||
accessibilityHint=""
|
accessibilityHint=""
|
||||||
onPress={() => setActiveToast(undefined)}
|
onPress={() => setActiveToast(undefined)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user