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

fix(material/form-field): move error aria-live to parent container #30678

Merged
merged 1 commit into from
Mar 28, 2025

Conversation

adolgachev
Copy link
Contributor

@adolgachev adolgachev commented Mar 21, 2025

This is a slight change in behavior where the aria-live is always set to polite even if the user puts a different aria-live value on the error. Based on internal usage, this is very rare (and not part of the documented API)

Fixes #29616

Revised version of #30155 which uses a single aria-live wrapper container div for both error and hints (changing the class appropriately). This prevents issues with existing usage caused by introducing a new wrapper div.

@adolgachev adolgachev changed the title restructure errors fix(material/form-field): move error aria-live to parent container Mar 22, 2025
@adolgachev adolgachev added dev-app preview When applied, previews of the dev-app are deployed to Firebase target: patch This PR is targeted for the next patch release labels Mar 24, 2025
Copy link

github-actions bot commented Mar 24, 2025

Deployed dev-app for 84a4502 to: https://ng-dev-previews-comp--pr-angular-components-30678-dev-b0shuu6t.web.app

Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt.

@adolgachev adolgachev marked this pull request as ready for review March 24, 2025 16:19
@adolgachev adolgachev requested a review from a team as a code owner March 24, 2025 16:19
@adolgachev adolgachev requested review from crisbeto, wagnermaciel and andrewseguin and removed request for a team March 24, 2025 16:19
fix(material/form-field): move error aria-live to parent container

restructure errors

Use single wrapper with aria-live

update specs

fix error

update api goldens

Add comment for new div
@adolgachev
Copy link
Contributor Author

TESTED=TGP

@adolgachev adolgachev added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels Mar 26, 2025
@adolgachev
Copy link
Contributor Author

Caretaker note: Needs to be merged with cl/739512259

@andrewseguin andrewseguin merged commit e9b0157 into angular:main Mar 28, 2025
22 of 24 checks passed
@andrewseguin
Copy link
Contributor

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

andrewseguin pushed a commit that referenced this pull request Mar 28, 2025
…30678)

fix(material/form-field): move error aria-live to parent container

restructure errors

Use single wrapper with aria-live

update specs

fix error

update api goldens

Add comment for new div

(cherry picked from commit e9b0157)
@adolgachev adolgachev deleted the ff-hint branch March 28, 2025 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: material/form-field dev-app preview When applied, previews of the dev-app are deployed to Firebase merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(MatError): Screen reader doesn't announce errors shown after tabbing out of the field
3 participants