From 2151744859ebdc8f8379e6c80c4caa82b6ef0cbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aliz=C3=A9=20Debray?= Date: Tue, 14 May 2024 14:17:33 +0200 Subject: [PATCH] fix(components): re-enable accordion chevron rotation --- .changeset/twelve-hornets-crash.md | 5 +++++ .../components/post-accordion-item/post-accordion-item.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/twelve-hornets-crash.md diff --git a/.changeset/twelve-hornets-crash.md b/.changeset/twelve-hornets-crash.md new file mode 100644 index 0000000000..0c22b70df7 --- /dev/null +++ b/.changeset/twelve-hornets-crash.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-components': patch +--- + +Fixed the `post-accordion-item` chevron no longer rotating. diff --git a/packages/components/src/components/post-accordion-item/post-accordion-item.tsx b/packages/components/src/components/post-accordion-item/post-accordion-item.tsx index 1a7d913a80..7947d8c9ca 100644 --- a/packages/components/src/components/post-accordion-item/post-accordion-item.tsx +++ b/packages/components/src/components/post-accordion-item/post-accordion-item.tsx @@ -51,7 +51,7 @@ export class PostAccordionItem { @Listen('postToggle') onCollapseToggle(event: CustomEvent): void { - if ((event.target as HTMLElement).localName === 'post-collapsible') { + if ((event.target as HTMLElement).localName === 'post-accordion-item') { this.isOpen = event.detail; } }