fix accessibility

This commit is contained in:
Hailey
2024-10-02 19:00:33 -07:00
parent 83d1c381f7
commit 639a7ea3b0
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -468,6 +468,7 @@ export const Button = React.forwardRef<View, ButtonProps>(
role="button" role="button"
accessibilityHint={undefined} // optional accessibilityHint={undefined} // optional
{...rest} {...rest}
// @ts-ignore - this will always be a pressable
ref={ref} ref={ref}
aria-label={label} aria-label={label}
aria-pressed={state.pressed} aria-pressed={state.pressed}
@@ -122,6 +122,8 @@ export class NormalizedRNGHPressable extends React.Component<PressableProps> {
onPressOut={this.onPressOut} onPressOut={this.onPressOut}
onHoverIn={this.onHoverIn} onHoverIn={this.onHoverIn}
onHoverOut={this.onHoverOut} onHoverOut={this.onHoverOut}
accessible={true}
accessibilityRole="button"
/> />
) )
} }