From c86ea2b4a980eaf5768ea76d91c75723af1d7fba Mon Sep 17 00:00:00 2001 From: Bruce Blaser Date: Thu, 20 Mar 2025 13:16:20 -0700 Subject: [PATCH] fix(a11y): separate disclosure content from toggle button (#59286) --- .../Introduction/components/block-header.tsx | 56 ++++++++++--------- client/src/templates/Introduction/intro.css | 4 ++ 2 files changed, 33 insertions(+), 27 deletions(-) diff --git a/client/src/templates/Introduction/components/block-header.tsx b/client/src/templates/Introduction/components/block-header.tsx index 408e2b7f223..8f23186107c 100644 --- a/client/src/templates/Introduction/components/block-header.tsx +++ b/client/src/templates/Introduction/components/block-header.tsx @@ -34,35 +34,37 @@ function BlockHeader({ blockIntroArr }: BlockHeaderProps): JSX.Element { return ( -

- -

+ )} + + + {isExpanded && !isEmpty(blockIntroArr) && ( + + )} + ); } diff --git a/client/src/templates/Introduction/intro.css b/client/src/templates/Introduction/intro.css index 02ff72241c2..c4a5718002a 100644 --- a/client/src/templates/Introduction/intro.css +++ b/client/src/templates/Introduction/intro.css @@ -337,6 +337,10 @@ button.map-title { margin-bottom: 0; } +.block-grid .block-description { + padding: 18px 15px; +} + a.map-grid-item.challenge-completed { background: var(--highlight-background); position: relative;