fix accessibility
This commit is contained in:
@@ -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"
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user