Skip to content

Commit

Permalink
fix(material/datepicker): datepicker row count inaccurate for screen …
Browse files Browse the repository at this point in the history
…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

(cherry picked from commit 457ce69)
  • Loading branch information
essjay05 authored and zarend committed Mar 26, 2024
1 parent 4e32a4f commit 4ca9ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material/datepicker/month-view.html
Expand Up @@ -8,7 +8,7 @@
</th>
}
</tr>
<tr><th aria-hidden="true" class="mat-calendar-table-header-divider" colspan="7"></th></tr>
<tr aria-hidden="true"><th class="mat-calendar-table-header-divider" colspan="7"></th></tr>
</thead>
<tbody mat-calendar-body
[label]="_monthLabel"
Expand Down

0 comments on commit 4ca9ac5

Please sign in to comment.