Skip to content

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
mistrykaran91 pushed a commit to mistrykaran91/components that referenced this pull request Apr 7, 2025
…ngular#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
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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