Repository navigation
fix(Dropdown): remove default listbox role from overlay wrapper - #1188
Merged
vrajput-eightfold merged 3 commits intoNov 26, 2026
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vrajput-eightfold
force-pushed
the
fix/dropdown-remove-default-listbox-role
branch
from
November 23, 2026 09:22
77aa188 to
56a9928
Compare
smurthy-eightfold
approved these changes
Nov 25, 2026
agupta-eightfold
left a comment
Collaborator
There was a problem hiding this comment.
Dropdown.stories.tsx:515 still wraps the role="list" overlay in overlayProps.role: 'listbox', so that story keeps the pattern this PR removes. Can we drop it there too?
agupta-eightfold
approved these changes
Nov 26, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Re the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY:
Dropdown gave its overlay wrapper
role="listbox"by default. Most overlays render their own semantic container, such as arole="menu"Menu or a filter form, so screen readers heard a menu inside a listbox, or a listbox around controls that aren't options.The wrapper now has no role by default, so the overlay content supplies its own. To set one, pass
roleoroverlayProps.role.Impact
role="menu"for the Menu-based ones).role="menu") and Select (role={null}) set their own role, so they're unchanged.role="option"items directly in the overlay, with no listbox of its own, must now passrole="listbox".GITHUB ISSUE (Open Source Contributors)
N/A
JIRA TASK (Eightfold Employees Only):
https://eightfoldai.atlassian.net/browse/ENG-215005
https://eightfoldai.atlassian.net/browse/ENG-214951
https://eightfoldai.atlassian.net/browse/ENG-215016
https://eightfoldai.atlassian.net/browse/ENG-214939
CHANGE TYPE:
TEST COVERAGE:
TEST PLAN:
yarn test: all 231 suites pass. 3 Menu snapshots were updated, and the only change in each is the removedrole="listbox"line.yarn typecheckpasses.roleattribute.I have added screenshots for 1 such case:
Before this change:
After this change:
Verify that their is no role = listbox, wrapping a menu:
🤖 Generated with Claude Code