-
Notifications
You must be signed in to change notification settings - Fork 685
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
#1222 Filters (Layered Navigation) - Add keyboard focus and adjust the way tab order should work #3034
#1222 Filters (Layered Navigation) - Add keyboard focus and adjust the way tab order should work #3034
Conversation
|
ℹ️ plan to proceed with the failed tests once the main changes are approved; For now, will work on the spotted bug:
|
update ✅ The aforementioned bug has been addressed |
Sounds good - I've moved the ticket to the "ux review" column. Once approved by UX it will move on to dev review. |
…ed-nav-add-keyboard-focus-and-a11y
Signed-off-by: sirugh <rugh@adobe.com>
…ard-focus-and-a11y-rugh-edit prevent filter button from unmounting when applying uncached filters
…1222-layered-nav-add-keyboard-focus-and-a11y
…d use them on Category and Search pages
… initial button not focused back
…r with non-cached valued
@sirugh Please check following -
|
I'll fix this. |
Interesting. I noted on Chrome that we also "lose" focus, though pressing tab goes to the top-most filter tab ie "Price". @vasilii-b do you have any ideas on how to fix this? Edit: Actually, looking at #3137 you can see in the demo https://pr-3137.pwa-venia.com/venia-bottoms.html?page=1&price%5Bfilter%5D=0-100%2C0_100 that it behaves sort of the same. IMO we should open a bug about "moving focus to next element when a filter is removed". Probably not worth holding this PR up anymore. |
Signed-off-by: sirugh <rugh@adobe.com>
…https://github.com/vasilii-b/pwa-studio into feature/1222-layered-nav-add-keyboard-focus-and-a11y
@sirugh When there are 0 filter results then sort button should not be displayed but its displaying. MFTF test failing, please check. |
Signed-off-by: sirugh <rugh@adobe.com>
This is confusing, so we should show sort/filter button together, unless there are zero results in which case we should show the filter button but not the sort button? |
In my opinion we should ignore #2681 as rendering both together doesn't make sense. |
Signed-off-by: sirugh <rugh@adobe.com>
Signed-off-by: sirugh <rugh@adobe.com>
3ce8e55
to
9661347
Compare
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.
Looks good 👍 tiny bit of whitespace in test name, but ready for another round of QA.
packages/venia-ui/lib/RootComponents/Category/__tests__/categoryContent.spec.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Tommy Wiebell <twiebell@adobe.com>
Signed-off-by: sirugh <rugh@adobe.com>
Signed-off-by: sirugh <rugh@adobe.com>
Looks good from product perspective |
Description
This PR adds the a11y changes to the Layered Navigation (Filters) modal on the category pages according to the specifications in #1222 .
Related Issue
Closes #1222.
Acceptance
Verification Stakeholders
@dpatil-magento @sirugh
Specification
Verification Steps
Tab
key.Tab
key. Make sure the focus switches to the next filter item. E.g. "Color".Space
key on the filter item "Color". The options should show. E.g. "Purple" and "Yellow"Space
key. You should navigate through "Color" options.Tab
key a few times until you focus the next filter item. E.g. "Material".Tab
key a few more times until you focus the "Close" button again (that's when no filter option applied).Screenshots / Screen Captures (if appropriate)
Checklist