From 53267852ccc31b350070b99bed8be675f46a149d Mon Sep 17 00:00:00 2001 From: Myrta Sakellariou <66249294+myrta2302@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:29:13 +0200 Subject: [PATCH] chore(components): disable focus when accordion item collapsed (#4309) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Oliver Schürch --- .changeset/wicked-scissors-buy.md | 5 +++++ .../src/components/post-collapsible/post-collapsible.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/wicked-scissors-buy.md diff --git a/.changeset/wicked-scissors-buy.md b/.changeset/wicked-scissors-buy.md new file mode 100644 index 0000000000..79950fb357 --- /dev/null +++ b/.changeset/wicked-scissors-buy.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-components': patch +--- + +Removed focus from collapsible when in collapsed state. diff --git a/packages/components/src/components/post-collapsible/post-collapsible.tsx b/packages/components/src/components/post-collapsible/post-collapsible.tsx index e44c2d25c2..424fc8ebbb 100644 --- a/packages/components/src/components/post-collapsible/post-collapsible.tsx +++ b/packages/components/src/components/post-collapsible/post-collapsible.tsx @@ -96,7 +96,7 @@ export class PostCollapsible { render() { return ( - + );