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): changes show/hide mechanism of mat-error for screenreaders #29831

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

essjay05
Copy link
Contributor

@essjay05 essjay05 commented Oct 4, 2024

Attempts to fix a bug with Angular Components Form-field component where the mat-error and mat-hint component are just visually hidden in the DOM, but visibility is toggled depending on the form field state. Also updates the .mat-mdc-form-field-subscript-wrapper to have aria-live=assertive in order to prioritize the error/hint being read when it appears.

Fixes b/370743693

…r screenreaders

Attempts to fix a bug with Angular Components Form-field component where the
mat-error and mat-hint component are just visually hidden in the DOM, but
visibility is toggled depending on the form field state. Also updates the
.mat-mdc-form-field-subscript-wrapper to have aria-live=assertive in order to
prioritize the error/hint being read when it appears.

Fixes b/370743693
@essjay05 essjay05 force-pushed the fix-mat-error-aria-live branch from 3d224be to c21be53 Compare October 7, 2024 21:56
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