Use react-aria for accessibility? #167
Replies: 3 comments 6 replies
-
Radix Primitives seems to be the more modern alternative, and it's build by the Stitches team (which NextUI uses under the hood already). For now, react-aria provides some functionality that Radix Primitives doesn't (like a combo-box or autocomplete) but the devs are saying this is coming soon to. |
Beta Was this translation helpful? Give feedback.
-
Hey @devongovett I'm really glad to have you here, thank you so much for the detailed suggestion we are evaluating both options Invitation -> https://discord.com/invite/9b6yyZKmH4 Thanks 🙏🏻 |
Beta Was this translation helpful? Give feedback.
-
I think that adding any of this library will increase the bundle size of next-ui a lot. If we want to track accessibility I recommend using react-aria instead of radix. However, I think that we need to refactor this code a lot for adding react-aria and we are facing the problem of sacrificing performance to add this accessibility library, which is incongruence because we are reducing the access to the sites when don't have internet or resources (performant devices) to access. If you could be able to share with us the accessibility issues that you found, it will be really helpful to start working on fixing them. |
Beta Was this translation helpful? Give feedback.
-
Would be awesome if nextui used react-aria under the hood to ensure all components are accessible. It is a library of hooks designed to be used by this exact kind of library. It only provides behaviors and a11y, no rendering, and is fully customizable. I'm obviously biased as one of the maintainers, but I think it will save you a lot of time implementing complex behaviors from scratch, and testing them across many different devices (i.e. mouse, touch, keyboard, etc.) and assistive technologies.
I took a look at the existing components and found many accessibility issues with them (can go into detail if you want). I think React Aria could help with this, and let you focus on what's unique to this library rather than reinventing everything from scratch. In my experience, it is also waaaaaay easier to build accessibility in from the start than try to add it later.
Anyway, this is just a friendly message. Feel free to reach out if you have any questions. 😄
Beta Was this translation helpful? Give feedback.
All reactions