Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

fix(SelectableList): set tabindex -1 to List container to make it work correctly with screen readers #1858

Merged
merged 6 commits into from
Aug 29, 2019

Conversation

sophieH29
Copy link
Contributor

@sophieH29 sophieH29 commented Aug 28, 2019

Closes #1843

When SelectableListBehavior is used, List should have tabindex =-1 on it's <ul> container, so then screen readers will correctly work with selectable list behavior.

@codecov
Copy link

codecov bot commented Aug 28, 2019

Codecov Report

Merging #1858 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1858   +/-   ##
=======================================
  Coverage   69.64%   69.64%           
=======================================
  Files         874      874           
  Lines        7610     7610           
  Branches     2241     2215   -26     
=======================================
  Hits         5300     5300           
  Misses       2302     2302           
  Partials        8        8
Impacted Files Coverage Δ
...ssibility/Behaviors/List/selectableListBehavior.ts 100% <ø> (ø) ⬆️
...eact/src/lib/accessibility/FocusZone/FocusZone.tsx 89.08% <ø> (ø) ⬆️
...ages/react/test/specs/behaviors/testDefinitions.ts 89.53% <ø> (ø) ⬆️

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 949d667...545bab0. Read the comment docs.

@sophieH29 sophieH29 added accessibility All the Accessibility tasks and bugs should be tagged with this. ⚙️ enhancement New feature or request 🚧 WIP labels Aug 28, 2019
Sofiya Huts added 2 commits August 29, 2019 11:36
…thub.com/stardust-ui/react into feat/selectable-list-focusable-container

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
@sophieH29 sophieH29 changed the title feat(SelectableList): switch between tabindex 0/-1 based on focused state feat(SelectableList): set tabindex -1 to List container to make it work correctly with screen readers Aug 29, 2019
@sophieH29 sophieH29 changed the title feat(SelectableList): set tabindex -1 to List container to make it work correctly with screen readers fix(SelectableList): set tabindex -1 to List container to make it work correctly with screen readers Aug 29, 2019
@sophieH29 sophieH29 merged commit 6b09a1d into master Aug 29, 2019
@delete-merged-branch delete-merged-branch bot deleted the feat/selectable-list-focusable-container branch August 29, 2019 10:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accessibility All the Accessibility tasks and bugs should be tagged with this. ⚙️ enhancement New feature or request 🚀 ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SelectableListBehavior - switch between tabindex 0/-1 based on focused state
2 participants