Skip to content

Commit a3ec85b

Browse files
committed
Add comment for new div
1 parent a311bfc commit a3ec85b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/material/form-field/form-field.html

+5
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@
101101
>
102102
@let subscriptMessageType = _getSubscriptMessageType();
103103

104+
<!--
105+
Use a single permanent wrapper for both hints and errors so aria-live works correctly,
106+
as having it appear post render will not consistently work. We also do not want to add
107+
additional divs as it causes styling regressions.
108+
-->
104109
<div aria-atomic="true" aria-live="polite"
105110
[class.mat-mdc-form-field-error-wrapper]="subscriptMessageType === 'error'"
106111
[class.mat-mdc-form-field-hint-wrapper]="subscriptMessageType === 'hint'"

0 commit comments

Comments
 (0)