move aria attribs off <slot>; fixes #1417

pull/1429/head
Cory LaViska 2023-07-03 12:39:42 -04:00
rodzic 91095bd63a
commit 1b5db078a7
2 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -16,6 +16,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti
- Added tests for `<sl-qr-code>` [#1416]
- Fixed a bug in `<sl-qr-code>` where the `background` attribute was never passed to the QR code [#1416]
- Fixed a bug in `<sl-dropdown>` where aria attributes were incorrectly applied to the default `<slot>` causing Lighthouse errors [#1417]
## 2.5.2

Wyświetl plik

@ -411,12 +411,14 @@ export default class SlDropdown extends ShoelaceElement {
@slotchange=${this.handleTriggerSlotChange}
></slot>
<slot
<div
part="panel"
class="dropdown__panel"
aria-hidden=${this.open ? 'false' : 'true'}
aria-labelledby="dropdown"
></slot>
>
<slot></slot>
</div>
</sl-popup>
`;
}