Skip to content

Commit 6f11b5c

Browse files
committed
fix(material/dialog): dialog name not read by screenreader on macos using chrome or firefox
Updates fix for Angular Components Dialog issue where the dialog name is not being read by the screenreader when specifically using macos (and potentially ios) screenreader when using chrome or firefox browsers. Removes unused commented out code and includes ios as part of the logic to call _getDialogName(). Fixes b/274674581
1 parent 967dce6 commit 6f11b5c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/material/dialog/dialog-container.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ export class MatDialogContainer
9797
: 0;
9898
/** Current timer for dialog animations. */
9999
private _animationTimer: ReturnType<typeof setTimeout> | null = null;
100-
/** Platform Observer */
101-
// private _userAgentSubscription = Subscription.EMPTY;
102100
private _getWindow(): Window {
103101
return this._document?.defaultView || window;
104102
}
@@ -169,7 +167,7 @@ export class MatDialogContainer
169167

170168
private _setAriaLabel = (): void => {
171169
const os = this._getUserPlatform();
172-
if (os === 'macos') {
170+
if (os === 'macos' || os === 'ios') {
173171
this._getDialogName();
174172
}
175173
return;

0 commit comments

Comments
 (0)