Skip to content

Commit 3328808

Browse files
devversionjelbourn
authored andcommitted
fix(datepicker): screenreaders report editable grid cells (#12275)
* Since the `aria-readonly` attribute is not set properly, in Firefox with NVDA, the screenreader announces that every date (grid cell) is editable. This is not true, because those cells are just selectable.
1 parent 12c6f81 commit 3328808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/datepicker/calendar-body.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class MatCalendarCell {
4242
host: {
4343
'class': 'mat-calendar-body',
4444
'role': 'grid',
45-
'attr.aria-readonly': 'true'
45+
'aria-readonly': 'true'
4646
},
4747
exportAs: 'matCalendarBody',
4848
encapsulation: ViewEncapsulation.None,

0 commit comments

Comments
 (0)