Skip to content

Commit

Permalink
Updated accessibility role for text inside buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
brianacnguyen committed Feb 27, 2024
1 parent ca5dc68 commit 7468d17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const ButtonBase = ({
<Text
variant={DEFAULT_BUTTONBASE_LABEL_TEXTVARIANT}
style={styles.label}
accessibilityRole="none"
>
{label}
</Text>
Expand Down
2 changes: 1 addition & 1 deletion app/component-library/components/Texts/Text/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Text: React.FC<TextProps> = ({
}) => {
const { styles } = useStyles(styleSheet, { variant, style, color });
return (
<RNText {...props} style={styles.base} accessibilityRole="text">
<RNText accessibilityRole="text" {...props} style={styles.base}>
{children}
</RNText>
);
Expand Down

0 comments on commit 7468d17

Please sign in to comment.