Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

movntains
Copy link

Accessibility Improvements

Description

This PR makes the following accessibility improvements to the dashboard:

  • It adds a skip link in order to satisfy WCAG Success Criterion 2.4.1 Bypass Blocks.
    • It's worth noting that the skip link styling intentionally utilizes Tailwind's outline classes rather than ring classes because the ring classes rely on box shadows, and box shadows are removed in Windows High Contrast Mode (which would result in focus indicators no longer being visible in WHCM).
  • It adds sr-only <h1> elements to each of the 4 settings pages, so as to ensure that heading levels aren't skipped and each of the settings pages provides a main heading to screen readers.
  • It adds an ARIA label to the settings sub-navigation menu so as to provide better context for screen reader users.

Screenshots

Skip Link -- Light Mode

Skip Link -- Light Mode

Skip Link -- Dark Mode

Skip Link -- Dark Mode

VoiceOver Headings List -- Profile Settings Page

Profile Settings Page Headings

VoiceOver Headings List -- Password Settings Page

Password Settings Page Headings

VoiceOver Headings List -- Two-Factor Authentication Page

Two-Factor Authentication Page Headings

VoiceOver Headings List -- Appearance Settings Page

Appearance Settings Page Headings

Settings Navigation ARIA Label

Settings Navigation ARIA Label

Screencast of Skip Link in Action

Note: As demonstrated in this screencast, the skip link, when used, will skip repetitive navigation (e.g., the sidebar navigation) and move keyboard focus to the main content of the page. It will also respect reduced motion preferences that are set at the OS level (i.e., the transition will be removed if the user has reduced motion preferences set).

Skip.Link.In.Action.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant