Skip to content

Commit a3ba48b

Browse files
committed
fix(material/dialog): dialog name not read by mac screenreader on chrome and firefox
Fixes Angular Components Dialog component where the mac screenreader is not reading the associated aria-labelledby id value as the dialog name/title. Fixes logic checking for macos so that the function_getDialogName() gets called when the value of the arialabelledby id element gets inserted into the aria-label value. Fixes b/274674581
1 parent 2342929 commit a3ba48b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/dialog/dialog-container.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export class MatDialogContainer
178178

179179
private _setAriaLabel = (): void => {
180180
const os = this._getUserPlatform();
181-
if (os === 'mac') {
181+
if (os === 'macos') {
182182
this._getDialogName();
183183
}
184184
return;

0 commit comments

Comments
 (0)