Skip to content

Commit

Permalink
move aria attribs off <slot>; fixes #1417
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Jul 3, 2023
1 parent 91095bd commit 1b5db07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/pages/resources/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 4 additions & 2 deletions src/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
`;
}
Expand Down

0 comments on commit 1b5db07

Please sign in to comment.