Merge pull request #6040 from BlueWallet/Improve-accessibility-of-floating-buttons-(scan,-send,-receive)-#5389

FIX: Improve accessibility of floating buttons (scan, send, receive) …
This commit is contained in:
GLaDOS 2024-01-23 09:20:42 +00:00 committed by GitHub
commit 2fe35ed211
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,7 +142,7 @@ export const FButton = ({ text, icon, width, first, last, ...props }: FButtonPro
}
return (
<TouchableOpacity accessibilityRole="button" style={[bStyles.root, bStylesHook.root, style]} {...props}>
<TouchableOpacity accessibilityLabel={text} accessibilityRole="button" style={[bStyles.root, bStylesHook.root, style]} {...props}>
<View style={bStyles.icon}>{icon}</View>
<Text numberOfLines={1} style={[bStyles.text, props.disabled ? bStylesHook.textDisabled : bStylesHook.text]}>
{text}