kopia lustrzana https://github.com/shoelace-style/shoelace
move aria attribs off <slot>; fixes #1417
rodzic
91095bd63a
commit
1b5db078a7
|
@ -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>
|
||||
`;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue