From a2dcf21f9dee33195d8f45ec9b0bdbee44c052d8 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Mon, 27 Aug 2018 19:03:13 +0200 Subject: [PATCH] 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. --- src/lib/datepicker/calendar-body.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/datepicker/calendar-body.ts b/src/lib/datepicker/calendar-body.ts index c81b5a537268..e2d3d430c12d 100644 --- a/src/lib/datepicker/calendar-body.ts +++ b/src/lib/datepicker/calendar-body.ts @@ -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,