-
-
Notifications
You must be signed in to change notification settings - Fork 415
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
feat(dropdown.tsx): Dropdown Accessibility #840
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This component is responsible to handle the logic of creating the button element based on the custom or default tag name
Now the Dropdown component is accessible by keyboard. Also the dismiss on item click is fixed fix themesberg#648. fix themesberg#793
clone element resulted from renderTrigger and attach the ref and a11y props to it
Resolution for dependency nwsapi was added in order to fix an issue in the tababble package
cad60c3
to
3210072
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #840 +/- ##
==========================================
- Coverage 99.54% 99.53% -0.02%
==========================================
Files 163 165 +2
Lines 6621 6823 +202
Branches 401 414 +13
==========================================
+ Hits 6591 6791 +200
- Misses 30 32 +2
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow! Really nice, @nigellima. I added just a few comments, but in general, it looks great.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @nigellima.
See themesberg/flowbite-react#840 for details. Signed-off-by: smnws <117300309+smnws@users.noreply.github.com>
This is another fantastic PR, thank you very much! |
In light of the changes made in this link: https://github.com/themesberg/flowbite-react/pull/840/files#diff-32fa9ddaf531f010c646834b9023bf97df1cd80d6de82762a56bc99514594f83R238, it appears that everything within the dropdown is now contained in an Additionally, I found some documentation here: https://github.com/themesberg/flowbite-react/pull/840/files#diff-d5c7e7428127c9af056fda02409bfef933507c13fa5dad102ee8dc33415b3c55R94. It suggests that I can use Please provide clarification if my understanding of these changes is mistaken. I appreciate your guidance 🙏. |
The |
thanks for clarification |
Description
This PR enables the
Dropdown.tsx
component to be navigated by keyboard, improves the Dropdown.Item component to be rendered usingas
prop, and fixes the dismiss on click anddisabled
trigger issues.Fixes #648. Fixes #793 . Fixes #539
The package resolution added in
package.json
was necessary due to some errors being thrown in the tests when usingFloatingFocusManager
component. See: focus-trap/focus-trap-react#986Type of change
How Has This Been Tested?
TBD
Checklist: