Skip to content

Commit

Permalink
chore(components): disable focus when accordion item collapsed (#4309)
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Schürch <[email protected]>
  • Loading branch information
myrta2302 and oliverschuerch authored Dec 19, 2024
1 parent 65ebf3d commit 5326785
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wicked-scissors-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-components': patch
---

Removed focus from collapsible when in collapsed state.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class PostCollapsible {

render() {
return (
<Host data-version={version}>
<Host data-version={version} tabindex={this.collapsed ? -1 : undefined}>
<slot />
</Host>
);
Expand Down

0 comments on commit 5326785

Please sign in to comment.