-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Control ArrowUp for Dropdown #18324
Control ArrowUp for Dropdown #18324
Conversation
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #18324 +/- ##
=======================================
Coverage 84.15% 84.16%
=======================================
Files 408 408
Lines 14443 14445 +2
Branches 4641 4693 +52
=======================================
+ Hits 12155 12158 +3
+ Misses 2124 2122 -2
- Partials 164 165 +1 ☔ View full report in Codecov by Sentry. |
Hi @cknabe, trying to follow the ticket linked in the corresponding bug issue - are the rules listed in your PR description coming from another issue?
|
@annawen1 No, #18277 states this:
This PR causes the Dropdown to not open when the user is at the top selection and they press the up arrow key. |
I see, I had understood the issue to mean that the Dropdown should not open at all on |
Thanks for opening that @cknabe |
I'll wait for @Kritvi-bhatia17 to comment before implementing the tests. I did make an assumption that the only reason the arrow up should be disabled is if it is already the top selected item, since Dropdown does not wrap. In the same way, I assumed the arrow down should not open if at the last selected item, because Dropdown does not wrap. I concluded that if a middle item is selected, then arrow up/arrow down should work, since you can move up or down in the list from that position. |
@mbgower could you re-clarify here the changes you were wanting to see wrt arrowup/down keypresses on Dropdown? |
Hi team!
|
@tay1orjones I think this PR wording is making things a bit more complicated than need be. I merely stated that the default Dropdown component should not open on There is NO need to alter any behaviour for I also do not think the list of 7 test steps is clear or correct. Since there seems to be some confusion in this PR, I will say for added context that the only one of the variants of Dropdown that wraps with arrow keys is Combobox -- and it also opens on Further, everything for multi-select seems correct already. It doesn't open on I'd also say that this should be regarded as a low priority change. It's hard imagining anyone being significantly affected by |
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.
Based on the conversations this LGTM 🚀
It just have to fix a small conflict.
Thanks for working on this!
5ec40d6
Closes #18277
Testing
Lorem, ipsum dolor sit amet consectetur adipisicing elit.
option become the highlighted option.