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

A11y/modals #16

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

A11y/modals #16

wants to merge 14 commits into from

Conversation

gcamacho079
Copy link
Contributor

Description

Aims to fix a few accessibility issues with modals, including the following:

  • Activating a focus trap on the modal
  • Setting aria-hidden="true" on all sibling elements in the body (not including style or script tags)
  • Add triggerElement setting to store default element to refocus on close

This is being worked on consecutively with updates in the CMS repo

Related issues

CMS-009, CMS-010, and CMS-014 in issue tracker

@gcamacho079
Copy link
Contributor Author

@brandonkelly this is nearly there, but I'd like to test on an instance (if there is one) where two modals are visible at once to ensure the ariaHide function is working properly.

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