-
Notifications
You must be signed in to change notification settings - Fork 77
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
[Accordion] Remove extraneous code with home/end/arrow keys #6081
Comments
After discussing with @geospatialem - this may be intentional / expected. But we still have a bunch of code in the components that supposedly is handling this, so we can remove if this is indeed desired behavior. |
We're going to proceed with leaving the |
…ng (#6086) **Related Issue:** #6081 [#6803](#6083) ## Summary As suggested by @alisonailea [in this comment](#6075 (comment)), extracts some common keyboard navigation focus helpers into a shared utility. Along the way discovered a few things that are fixed alongside the refactors: Accordion: - Cleanup: The keyboard expected navigation changed at some point, which I confirmed with @geospatialem, but there was a lot of related stale code that is removed. Dropdown: - Fix: Previously, tab / shift tab would skip elements resulting in navigating to every other item. - Fix: Previously, there was inconsistent close behavior when using tab / shift tab at the first / last item. - Fix: Previously, when `accordion-item` had a populated `href` property, there was a "double focus" issue. - Cleanup: Uses the new utility to handle keyboard navigation / focus Stepper / Tabs: - Cleanup: Uses the new utility to handle keyboard navigation / focus All existing tests are passing, but we may want some extra passes of manual testing, especially in the dropdown case, since there were so many weird bugs previously.
Installed and assigned for verification. |
Verified on The |
Actual Behavior
I am working on making some of our focus helpers into a general utility : #6075 (comment)
While doing so, I discovered our accordion keyboard navigation (besides
tab
/shift + tab
) stopped working at some point: https://codepen.io/mac_and_cheese/pen/LYBPyPr?editors=1000Expected Behavior
After discussion, this is the intentional behavior, the stale code was never removed - this issue has been repurposed to remove that code.
The text was updated successfully, but these errors were encountered: