Skip to content

Commit

Permalink
fix(datepicker): screenreaders report editable grid cells (#12275)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
devversion authored and jelbourn committed Aug 29, 2018
1 parent 12c6f81 commit 3328808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/datepicker/calendar-body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class MatCalendarCell {
host: {
'class': 'mat-calendar-body',
'role': 'grid',
'attr.aria-readonly': 'true'
'aria-readonly': 'true'
},
exportAs: 'matCalendarBody',
encapsulation: ViewEncapsulation.None,
Expand Down

0 comments on commit 3328808

Please sign in to comment.