-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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(VMenu/Selects): properly configure a11y #7385
Conversation
Codecov Report
@@ Coverage Diff @@
## next #7385 +/- ##
==========================================
- Coverage 85.78% 85.73% -0.06%
==========================================
Files 329 329
Lines 8610 8663 +53
Branches 2157 2178 +21
==========================================
+ Hits 7386 7427 +41
- Misses 1134 1147 +13
+ Partials 90 89 -1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## next #7385 +/- ##
==========================================
- Coverage 87.12% 86.93% -0.19%
==========================================
Files 325 325
Lines 8455 8536 +81
Branches 2120 2153 +33
==========================================
+ Hits 7366 7421 +55
- Misses 999 1025 +26
Partials 90 90
Continue to review full report at Codecov.
|
In In menu - tab moves to the next item, I'm not actually sure what should be the correct behaviour here, but my intuition told me that i'd tab out of the menu and it surprised me that it didn't happen. |
https://www.w3.org/TR/wai-aria-practices/#menubutton Up/down should open the menu and focus the last/first item when the activator is focused
Should be "focus the first selected"? |
Also should up/down cycle through the items in menu? |
resolved |
resolved |
You are correct, default behavior for multiple select is to move on with whatever selection have been made. Single select selects the item and re-focuses the input. Also tab behavior has been removed from menu and will now properly move on. |
TODO
Description
Improved a11y with
v-menu
and implementing components. Move keyboard interaction to be more in line with native behavior.v-list-item
v-menu
will be a menu-itemv-list-item-group
will be a list-itemv-select
will be an optionv-menu
v-select
v-list-item
(if applicable) when opening the menuv-simple-checkbox
to avoid issues caused by having an unrelated label element (also faster now!)routable
v-btn
activatable
v-slot:activator="{ on, attrs }"
Motivation and Context
Provide better a11y support and make select inputs feel more native.
How Has This Been Tested?
jest
Markup:
Types of changes
Checklist:
master
for bug fixes and documentation updates,dev
for new features and breaking changes).