Skip to content

Revisit implementation of accessibilityRole="button" #1899

@necolas

Description

@necolas

Is your feature request related to a problem? Please describe.

Revisit mapping accessibilityRole="button" to button element.

The current approach uses ARIA roles to achieve similar results due to historical problems in Firefox with flexbox children of a button. But this was fixed in Firefox 63 and the current ESR version is 78, so we may be able to migrate away from this special case and map "button" to an element like we do for several other roles. (FB web still supports FF versions prior to 63 but no one performs visual tests that far back so I don't think we need to be too concerned about it.)

This shouldn't produce any savings in bytes since the code used to implement ARIA-backed buttons is also used by the unstable createElement API and for other ARIA roles that should have similar behavior to buttons (i.e., respond to user interaction).

Metadata

Metadata

Assignees

No one assigned

    Labels

    has: prSubject of a pull requestproject:react-native-webIssue associated with react-native-web

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions