Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for new web-inspired a11y props #152

Closed
2 tasks done
leggomuhgreggo opened this issue Mar 7, 2024 · 1 comment
Closed
2 tasks done

Add support for new web-inspired a11y props #152

leggomuhgreggo opened this issue Mar 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@leggomuhgreggo
Copy link

leggomuhgreggo commented Mar 7, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Code Sandbox link

No response

Bug report

Problem

The new web-inspired RN a11y props are not recognized by eslint-plugin-react-native-a11y rules.

Causes duplicate props to be added, with --fix

  25:5  error  Missing a11y props. Expected one of: accessibilityRole OR BOTH accessibilityLabel + accessibilityHint OR BOTH accessibilityActions + onAccessibilityAction  react-native-a11y/has-valid-accessibility-descriptors

image

Context

React Native 0.71 introduced "Web-inspired props for accessibility, styles, and events" [post]

Accessibility

We introduced ARIA props as alias to existing React Native accessibility props.

These props now exist on all core components of React Native:aria-label, aria-labelledby,aria-modal, id, aria-busy, aria-checked, aria-disabled, aria-expanded, aria-selected, aria-valuemax, aria-valuemin, aria-valuenow, and aria-valuetext.

We also introduced equivalent web behavior for: aria-hidden, aria-live, role, and tabIndex.

See this issue for more details.

Here's some info on the updates in react-native-web:
necolas/react-native-web#1112
https://github.com/necolas/react-native-web/releases/tag/0.19.0

@leggomuhgreggo leggomuhgreggo added the bug Something isn't working label Mar 7, 2024
@carbonrobot
Copy link
Contributor

Duplicate of #151

@carbonrobot carbonrobot marked this as a duplicate of #151 Jun 11, 2024
@carbonrobot carbonrobot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants