Skip to content

Commit d2e8a55

Browse files
committed
fix(material/core): Fix MacOS Hover feature compatibility with optgroup (#27081)
Corrects ARIA semantics for the mat-optgroup component. Add role="presentation" to the label and remove aria-hidden="true" from the label. Fix compatibility issue with MAC Hover text a11y feature #27080. The label of the option group does not need to be aria-hidden, and the Mac Hover text feature seems to rely on it. Fix #27080 (cherry picked from commit 8afe9cd)
1 parent 62e517c commit d2e8a55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<span class="mat-optgroup-label" aria-hidden="true" [id]="_labelId">{{ label }} <ng-content></ng-content></span>
1+
<span class="mat-optgroup-label" role="presentation" [id]="_labelId">{{ label }} <ng-content></ng-content></span>
22
<ng-content select="mat-option, ng-container"></ng-content>

0 commit comments

Comments
 (0)