Skip to content

Commit ba5f075

Browse files
authored
fix: do not set aria-hidden attribute on date-picker label (#9998)
1 parent d776739 commit ba5f075

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

packages/date-picker/src/vaadin-date-picker-mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ export const DatePickerMixin = (subclass) =>
911911
this._overlayContent.focusDateElement();
912912
}
913913

914-
const focusables = this._noInput ? content : [input, content];
914+
const focusables = this._noInput ? content : this;
915915
this.__showOthers = hideOthers(focusables);
916916
}
917917

packages/date-picker/test/dom/__snapshots__/date-picker.test.snap.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,16 +319,12 @@ snapshots["vaadin-date-picker host opened default"] =
319319
top-aligned=""
320320
>
321321
<label
322-
aria-hidden="true"
323-
data-aria-hidden="true"
324322
for="search-input-vaadin-date-picker-3"
325323
id="label-vaadin-date-picker-0"
326324
slot="label"
327325
>
328326
</label>
329327
<div
330-
aria-hidden="true"
331-
data-aria-hidden="true"
332328
hidden=""
333329
id="error-message-vaadin-date-picker-2"
334330
slot="error-message"

0 commit comments

Comments
 (0)