-
Notifications
You must be signed in to change notification settings - Fork 58
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
fix: improved accessibility of dropdown #954
base: main
Are you sure you want to change the base?
fix: improved accessibility of dropdown #954
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #954 +/- ##
==========================================
+ Coverage 84.44% 84.45% +0.01%
==========================================
Files 1103 1104 +1
Lines 20557 20643 +86
Branches 7779 7817 +38
==========================================
+ Hits 17359 17434 +75
- Misses 3110 3121 +11
Partials 88 88 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
786522a
to
8fc8a62
Compare
}; | ||
// If clicking on an element inside a list item and closeOnElementClick is false, | ||
// don't close the dropdown | ||
if (!closeOnElementClick && isElementInsideListItem(event.target)) { |
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.
you might need to check multiple as well.. If you have multi selection, then the close on element click might not help
16a7f3d
to
835cd10
Compare
…opdown-accessibility-changes fix: merge
SUMMARY:
change button to div (like radix UI)
tab to focus dropdown
enter to open dropdown
up/down/left/right key to navigate items inside dropdown
enter to select focused item of dropdown
esc/tab to close dropdown
GITHUB ISSUE (Open Source Contributors)
JIRA TASK (Eightfold Employees Only):
https://eightfoldai.atlassian.net/browse/ENG-132612
CHANGE TYPE:
TEST COVERAGE:
TEST PLAN: