We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba800c3 commit 1fccc53Copy full SHA for 1fccc53
src/material/dialog/dialog-container.ts
@@ -132,8 +132,7 @@ export class MatDialogContainer
132
// If no ariaLabelledBy or ariaLabel, create default aria label
133
!dialogNameElement && !this._config.ariaLabel
134
? 'Dialog Modal'
135
- : // : Otherwise prioritize use of ariaLabel
136
- this._config.ariaLabel || dialogNameElement?.innerText || dialogNameElement?.ariaLabel;
+ : dialogNameElement?.innerText || dialogNameElement?.ariaLabel || this._config.ariaLabel;
137
return dialogNameInnerText || 'Dialog Modal';
138
};
139
0 commit comments