Skip to content
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

VoiceOver traverses links in closed SideNav #6286

Closed
Tracked by #7860
wkeese opened this issue Jun 16, 2020 · 2 comments · Fixed by #7864
Closed
Tracked by #7860

VoiceOver traverses links in closed SideNav #6286

wkeese opened this issue Jun 16, 2020 · 2 comments · Fixed by #7864
Assignees
Labels
component: ui-shell package: react carbon-components-react severity: 1 https://ibm.biz/carbon-severity type: a11y ♿

Comments

@wkeese
Copy link
Contributor

wkeese commented Jun 16, 2020

VoiceOver traverses the link in a closed SideNav.

Environment

iOS 13.

Detailed description

Test on Carbon 10.11.

When you turn on VoiceOver and swipe through the elements, it ends up going over every link in the SideNav, even though the SideNav is width: 0.

Steps to reproduce the issue

See https://react.carbondesignsystem.com/?path=/story/ui-shell--header-base-w-navigation-actions-and-sidenav for example, but it's an issue with the CSS from this repository, not anything particular with react.

  1. Navigate to https://react.carbondesignsystem.com/?path=/story/ui-shell--header-base-w-navigation-actions-and-sidenav.
  2. Triple click home button or use settings to turn on VoiceOver.
  3. Click "app switcher" button on right edge of header.
  4. swipe right
  5. focus goes to sidenav even though it was (and remains) closed.

Additional information

Screen Shot 2020-06-16 at 14 44 23

Not sure how to fix this as setting display:none breaks the slide-in / slide-out animation.

@tw15egan
Copy link
Collaborator

Looks like we can solve this by toggling the aria-hidden attribute based on the SideNav expanded state

@wkeese
Copy link
Contributor Author

wkeese commented Feb 23, 2021

Sounds good, I've also found that (in general) VoiceOver skips traversing aria-hidden nodes.

@kodiakhq kodiakhq bot closed this as completed in #7864 Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ui-shell package: react carbon-components-react severity: 1 https://ibm.biz/carbon-severity type: a11y ♿
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants