Skip to content

Commit

Permalink
fix accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Oct 3, 2024
1 parent 83d1c38 commit 639a7ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ export const Button = React.forwardRef<View, ButtonProps>(
role="button"
accessibilityHint={undefined} // optional
{...rest}
// @ts-ignore - this will always be a pressable
ref={ref}
aria-label={label}
aria-pressed={state.pressed}
Expand Down
2 changes: 2 additions & 0 deletions src/components/NormalizedRNGHPressable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ export class NormalizedRNGHPressable extends React.Component<PressableProps> {
onPressOut={this.onPressOut}
onHoverIn={this.onHoverIn}
onHoverOut={this.onHoverOut}
accessible={true}
accessibilityRole="button"
/>
)
}
Expand Down

0 comments on commit 639a7ea

Please sign in to comment.