Commit 175d4e4
fix(material/datepicker): a couple of accessibility issues in touch UI mode (#21228)
Resolves the following accessibility issues when the datepicker is in touch UI mode:
* Focus was going directly to the close button, because that's the first element
that the dialog's focus trap was running into. I've disabled the automatic
focus redirection since the calendar has its own.
* The calendar close button for screen readers was off-screen, because the
dialog container has `position: static` and `overflow: auto`.
Apart from the two issues above, I've also made it so the screen reader button's
theme color matches the one of the calendar. This is mostly so the button
doesn't look out of place if the calendar has a different theme and the user
tabs into it.
(cherry picked from commit f7bd224)1 parent 87ee0b8 commit 175d4e4
3 files changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
188 | 194 | | |
189 | 195 | | |
190 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
548 | 551 | | |
549 | 552 | | |
550 | 553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments