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

Aria disabled dialog #1996

Merged
merged 2 commits into from
May 10, 2023
Merged

Aria disabled dialog #1996

merged 2 commits into from
May 10, 2023

Conversation

keithamus
Copy link
Member

@keithamus keithamus commented May 9, 2023

Description

In #1891 we added aria-disabled=true to Dialog, but this attribute is never changed, for example when the Dialog opens. This means AT will read all links within the dialog as disabled, even when open. This change introduces a toggle of aria-disabled= to false when the dialog is open, and true when closed.

Closes #1988

Integration

Does this change require any updates to code in production?

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews

@changeset-bot
Copy link

changeset-bot bot commented May 9, 2023

🦋 Changeset detected

Latest commit: b7a1a09

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@keithamus keithamus marked this pull request as ready for review May 9, 2023 16:16
@keithamus keithamus requested review from a team and camertron May 9, 2023 16:16
@github-actions github-actions bot added the javascript Pull requests that update Javascript code label May 10, 2023
@jonrohan jonrohan merged commit aeb9d2a into main May 10, 2023
@jonrohan jonrohan deleted the aria-disabled-dialog branch May 10, 2023 15:56
@primer-css primer-css mentioned this pull request May 10, 2023
@keithamus keithamus mentioned this pull request Feb 8, 2024
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dialog aria-disabled attribute isn't changed when dialogs are opened
2 participants