-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix(menu): Switch from aria-selected to aria-checked for selected menu item. #4779
Conversation
Remove the top and bottom padding from the components. Remove the top and bottom margins from the button content. Button content should be center aligned. Use a <button> tag for the chip. BREAKING CHANGE: Update mdc-chip-leading-icon-margin and mdc-chip-trailing-icon-margin mixins signatures to take only left and right margin values.
…dleClick/#handleKeydown. (#4655) BREAKING CHANGE: Dialog `Foundation#handleInteraction` has been split into two methods: `#handleClick` and `#handleKeydown`.
…on group (#4620) BREAKING CHANGE: Replaced adapter methods getParentElement, getSelectedElementIndex with getSelectedSiblingOfItemAtIndex, isSelectableItemAtIndex.
…4697) BREAKING CHANGE: Removed `$mdc-checkbox-ui-pct` sass variable from `MDCCheckbox`
Add Adapter#getInitialFocusEl API. initialFocusEl will be the element passed in to Adapter#trapFocus. This formalizes the a11y-aligned idea of adding focus to an initial element (in #trapFocus) into the API. BREAKING CHANGE: Dialog Adapter#getInitialFocusEl has been added and Adapter#trapFocus first argument is now the initialFocusEl.
…dapters (#4701) BREAKING CHANGE: Replaced adapter methods getParentElement, getSelectedElementIndex with getSelectedSiblingOfItemAtIndex, isSelectableItemAtIndex.
Add MDCChipAdapter#setAttr method. Update screenshot tests with appropriate roles. BREAKING CHANGE: Add the setAttr method to the chip adapter.
Use 100vw as it doesn't have the same browser incompatibilities that 100vh does (see PR #4746 for context). 100% width on the other hand breaks on mobile/Safari.
Codecov Report
@@ Coverage Diff @@
## develop #4779 +/- ##
========================================
Coverage 98.95% 98.95%
========================================
Files 129 129
Lines 6332 6332
Branches 820 820
========================================
Hits 6266 6266
Misses 65 65
Partials 1 1
Continue to review full report at Codecov.
|
All 693 screenshot tests passed for commit 6c2f583 vs. |
All 690 screenshot tests passed for commit cf097a2 vs. |
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.
Please also update examples in README & screenshot test files.
No README/screenshot test updates needed, as there were no references to |
…u item. (#4779) aria-checked is advised in ARIA spec for selectable menu items: * w3.org/TR/wai-aria-1.1/#menuitemcheckbox * w3.org/TR/wai-aria-1.1/#menuitemradio
aria-checked is advised in ARIA spec for selectable menu items: