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 5b02831 commit 622344dCopy full SHA for 622344d
packages/main/src/Dialog.js
@@ -218,13 +218,13 @@ class Dialog extends Popup {
218
return ariaLabelledById;
219
}
220
221
+ /**
222
+ * Ensures ariaLabel is never null or empty string
223
+ * @returns {String|undefined}
224
+ * @protected
225
+ */
226
get _ariaLabel() {
- let ariaLabel;
-
- if (this.header.length > 0 && !!this.accessibleName) {
- ariaLabel = this.accessibleName;
- }
227
- return this.ariaLabel ? this.ariaLabel : ariaLabel;
+ return this.accessibleName || undefined;
228
229
230
get _ariaModal() { // Required by Popup.js
0 commit comments