Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(cdk/dialog): default aria-modal to false #30411

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

crisbeto
Copy link
Member

Having aria-modal="true" appears to hide other overlay-based components like mat-select from assistive technology. These changes set the default to false since the attribute is redundant anyway, because the dialog marks all outside content as aria-hidden.

Having `aria-modal="true"` appears to hide other overlay-based components like `mat-select` from assistive technology. These changes set the default to `false` since the attribute is redundant anyway, because the dialog marks all outside content as `aria-hidden`.
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Jan 29, 2025
@crisbeto crisbeto requested a review from a team as a code owner January 29, 2025 08:07
@crisbeto crisbeto requested review from mmalerba and andrewseguin and removed request for a team January 29, 2025 08:07
@crisbeto crisbeto removed the request for review from mmalerba January 29, 2025 13:00
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Jan 29, 2025
@crisbeto crisbeto merged commit c1ff40f into angular:main Jan 29, 2025
25 checks passed
@crisbeto
Copy link
Member Author

The changes were merged into the following branches: main, 19.1.x

crisbeto added a commit that referenced this pull request Jan 29, 2025
Having `aria-modal="true"` appears to hide other overlay-based components like `mat-select` from assistive technology. These changes set the default to `false` since the attribute is redundant anyway, because the dialog marks all outside content as `aria-hidden`.

(cherry picked from commit c1ff40f)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
action: merge The PR is ready for merge by the caretaker area: cdk/dialog target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants