This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Consider updating the <Button /> component to use react-aria useButton Hook
#213
AshleyRedman
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After using / testing the site around different browsers & mobile browsers, the focus ring and hold-drag behaves differently.
This is unforantly the nature of different browsers as they have their own interpretation of these interactions. To tackle that, Adobe has released a great (well maintained) library called
react-aria. Within, they provide auseButtonhook which allows to wrap the native button (can not be a button I suppose), and the usage becomes standardised across browsers.https://react-spectrum.adobe.com/react-aria/useButton.html
Ref: https://github.com/JiscSD/octopus/tree/main/ui/src/components/Button
Beta Was this translation helpful? Give feedback.
All reactions