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 56eb0d1 commit d3408cbCopy full SHA for d3408cb
src/material/dialog/dialog-container.ts
@@ -134,8 +134,7 @@ export class MatDialogContainer
134
// If no ariaLabelledBy or ariaLabel, create default aria label
135
!dialogNameElement && !this._config.ariaLabel
136
? 'Dialog Modal'
137
- : // : Otherwise prioritize use of ariaLabel
138
- this._config.ariaLabel || dialogNameElement?.innerText || dialogNameElement?.ariaLabel;
+ : dialogNameElement?.innerText || dialogNameElement?.ariaLabel || this._config.ariaLabel;
139
return dialogNameInnerText || 'Dialog Modal';
140
};
141
0 commit comments