components
components copied to clipboard
fix(material/form-field): changes show/hide mechanism of mat-error for screenreaders
trafficstars
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