Skip to content

Commit 457ce69

Browse files
authored
fix(material/datepicker): datepicker row count inaccurate for screen reader (#28760)
Fixes a bug in the Angular Material datepicker component where the divider row is being counted as a row. This is because the 'aria-hidden=true' was placed on its child th tag as opposed to the divider tr tag. Fixes #28476
1 parent 4473a37 commit 457ce69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/datepicker/month-view.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</th>
99
}
1010
</tr>
11-
<tr><th aria-hidden="true" class="mat-calendar-table-header-divider" colspan="7"></th></tr>
11+
<tr aria-hidden="true"><th class="mat-calendar-table-header-divider" colspan="7"></th></tr>
1212
</thead>
1313
<tbody mat-calendar-body
1414
[label]="_monthLabel"

0 commit comments

Comments
 (0)