Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

fix(list): Include disabled list items in keyboard navigation and allow focus #4568

Merged
merged 7 commits into from
Apr 9, 2019

Conversation

abhiomkar
Copy link
Collaborator

@abhiomkar abhiomkar commented Apr 3, 2019

Fixes #4561

As per ARIA practice recommendation disabled menu / list items are focusable but cannot be activated. It should only be focused but should not have other states such as activated / pressed.

Please see ARIA Menu > Keyboard Interactions & Focusability of disabled controls

BREAKING CHANGE: MDCList's listElements component API now includes disabled list items which previously returned only enabled list items.

@codecov-io
Copy link

codecov-io commented Apr 3, 2019

Codecov Report

Merging #4568 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4568   +/-   ##
=======================================
  Coverage   99.02%   99.02%           
=======================================
  Files         130      130           
  Lines        6277     6277           
  Branches      820      820           
=======================================
  Hits         6216     6216           
  Misses         60       60           
  Partials        1        1
Impacted Files Coverage Δ
packages/mdc-list/component.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b79b3a...215bb30. Read the comment docs.

@abhiomkar abhiomkar requested review from moog16 and removed request for kfranqueiro April 8, 2019 14:52
Copy link
Contributor

@moog16 moog16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left 1 comment. Changes look good!

packages/mdc-list/component.ts Show resolved Hide resolved
@mdc-web-bot
Copy link
Collaborator

@mdc-web-bot
Copy link
Collaborator

@abhiomkar abhiomkar merged commit 6e24280 into master Apr 9, 2019
@abhiomkar abhiomkar deleted the fix/list_disabled_menu branch April 9, 2019 00:34
@abhiomkar abhiomkar added this to the Sprint April 19th milestone Apr 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants