From ba898fcc707ca6c1777e08e63e71d19e775abb6f Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Tue, 5 Jan 2021 11:07:55 +0200 Subject: [PATCH] fix(material/select): NVDA reading out table when opening select on Chrome The `mat-select` trigger element has an `aria-owns` pointing to the overlay and `display: inline-table` in its CSS. The combination of these two causes Chrome to infer the element as a `table` which results in NVDA reading out "table" any time a select is opened. These changes resolve the issue by setting the element to `role="presentation"`. I've tested out the change against NVDA and VoiceOver and it doesn't seem to affect the accessibility of the select, apart from the "table" not being read out anymore. Fixes #21480. --- src/material-experimental/mdc-select/select.html | 6 +++++- src/material-experimental/mdc-select/select.spec.ts | 5 +++++ src/material/select/select.html | 6 +++++- src/material/select/select.spec.ts | 5 +++++ 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/material-experimental/mdc-select/select.html b/src/material-experimental/mdc-select/select.html index ec8d4f773f4f..29036098017e 100644 --- a/src/material-experimental/mdc-select/select.html +++ b/src/material-experimental/mdc-select/select.html @@ -1,14 +1,18 @@