From f7b623201dc7d07add55cedfd406eb48f4b3ff81 Mon Sep 17 00:00:00 2001 From: Henri Remonen Date: Thu, 18 Jan 2024 08:07:38 +0200 Subject: [PATCH] fix: prevent focus on hidden elements --- src/components/common/Accordion.tsx | 18 +++++++++++++++--- src/components/contrast/ColorContrast.tsx | 6 +++++- src/components/contrast/ColorPicker.tsx | 2 +- src/components/footer/Footer.tsx | 2 ++ 4 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/components/common/Accordion.tsx b/src/components/common/Accordion.tsx index fd0f634..3fac45d 100644 --- a/src/components/common/Accordion.tsx +++ b/src/components/common/Accordion.tsx @@ -33,13 +33,25 @@ const Accordion = ({ onClick={() => setExpandedBody(!expandedBody)} > - {expandedBody ? ( -