From ac266d03b2ccb1a1af0b88b18a8b1baff3a1afc1 Mon Sep 17 00:00:00 2001 From: Myrta Sakellariou Date: Mon, 16 Dec 2024 14:39:40 +0100 Subject: [PATCH] chore(components): disable focus when accordion item collapsed --- .../src/components/post-accordion-item/post-accordion-item.tsx | 1 + 1 file changed, 1 insertion(+) 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 235d9ce6e1..7c9cd9db1b 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 @@ -112,6 +112,7 @@ export class PostAccordionItem { id={`${this.id}--collapse`} collapsed={this.collapsed} ref={el => (this.collapsible = el)} + tabIndex={this.collapsed ? -1 : undefined} >