Skip to content

Commit c43bcdc

Browse files
authored
fix Button contradictory ARIA on non-link variant (#2430)
The non-link Button variant set role="button" together with accessible={false}, which makes screen readers ignore the role. Removing accessible={false} so the button is exposed to assistive technology.
1 parent 27c03ff commit c43bcdc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function Button({
4848
</View>
4949
</A>
5050
) : (
51-
<View role="button" focusable={false} style={buttonStyle} accessible={false} {...rest}>
51+
<View role="button" focusable={false} style={buttonStyle} {...rest}>
5252
{content}
5353
</View>
5454
)}

0 commit comments

Comments
 (0)