mirror of
https://github.com/shoelace-style/shoelace.git
synced 2026-01-12 11:09:13 +00:00
move aria attribs off <slot>; fixes #1417
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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>
|
||||
`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user