-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix(dropdown): align styles and behavior with React parity #20863
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(dropdown): align styles and behavior with React parity #20863
Conversation
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## main #20863 +/- ##
==========================================
- Coverage 92.39% 85.57% -6.82%
==========================================
Files 515 357 -158
Lines 37629 14501 -23128
Branches 5740 4903 -837
==========================================
- Hits 34766 12409 -22357
+ Misses 2714 1952 -762
+ Partials 149 140 -9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
sunny-babbar
left a comment
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.
LGTM
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.
Nice work! Just a few comments:
- The warn icon overlaps when the text is long
the invalid icon works fine, though
- When toggling disabled on then turning it off, the items remain disabled
- Some changes are bleeding into the multi-select component causing regressions (can't type in filterable input, list closes after selection, styles, hovering over items, etc.)
Screen.Recording.2025-11-06.at.11.31.25.AM.mov
- The combobox component is also inheriting some of the focus management from dropdown, too
maradwan26
left a comment
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.
LGTM! 🚀
18b87e5
…sign-system#20863 (carbon-design-system#21048) * feat(dropdown): reintroduce parity changes from reverted PR carbon-design-system#20863 * fix(multi-select): ensure input reflects aria-expanded state
* fix: added missing accessibility labels for pagination elements * fix: update contribution * Fix formatting for cds-callout-notification section (#21036) Co-authored-by: Gururaj J <[email protected]> Co-authored-by: Heloise Lui <[email protected]> * feat(dropdown): reintroduce parity changes from reverted PR #20863 (#21048) * feat(dropdown): reintroduce parity changes from reverted PR #20863 * fix(multi-select): ensure input reflects aria-expanded state * fix: address review comment * chore(styles): update Sass API for web component builds (#21044) * chore(styles): update sass api for web component builds * chore(styles): update deprecated type-of() in theme --------- Co-authored-by: Gururaj J <[email protected]> Co-authored-by: Heloise Lui <[email protected]> * fix(combobox): sync menu highlight with controlled selection (#21064) --------- Co-authored-by: Maximilian Smidt <[email protected]> Co-authored-by: Gururaj J <[email protected]> Co-authored-by: Heloise Lui <[email protected]> Co-authored-by: kennylam <[email protected]>
Closes #18332
Update
<cds-dropdown>Web Component to match React component parity.Changelog
New
ArrowUp,ArrowDown,Enter,Space)Changed
cds-dropdown-beingselected,cds-dropdown-beingtoggled, etc.)argsandargTypesRemoved
Testing / Reviewing
WC Deploy Preview>Dropdowncompare with the ReactDropdown.disabled,invalid,warn,readOnly,size,type...) behave consistently. (I open a separate issue to implement the autoAlign prop).EnterandSpaceopen/close and select itemsArrowUpandArrowDownnavigate between itemsautoAligncontrols #20859 to implementautoAlign)PR Checklist
As the author of this PR, before marking ready for review, confirm you:
[ ] Wrote passing tests that cover this changeMore details can be found in the pull request guide