From e739fdb518ad58b796754c4da5323fc00148d168 Mon Sep 17 00:00:00 2001 From: Ralksta <16941050+ralksta@users.noreply.github.com> Date: Wed, 1 Apr 2026 12:46:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20[UX=20improvement]=20?= =?UTF-8?q?Add=20aria-hidden=20to=20decorative=20SVGs=20(#70)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added aria-hidden="true" to decorative SVG icons within interactive elements (buttons, links) in Lightbox, ThemeToggle, Footer, BackLink, and MapView. * Added role="alert" and aria-live="polite" to the MapView loading indicator. * Documented learning in .Jules/palette.md Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> --- .Jules/palette.md | 4 ++++ components/BackLink.tsx | 1 + components/Footer.tsx | 3 +++ components/Lightbox.tsx | 3 +++ components/MapView.tsx | 34 ++++++++++++++++++++-------------- components/ThemeToggle.tsx | 2 ++ 6 files changed, 33 insertions(+), 14 deletions(-) diff --git a/.Jules/palette.md b/.Jules/palette.md index ec1d951..277497d 100644 --- a/.Jules/palette.md +++ b/.Jules/palette.md @@ -1,3 +1,7 @@ ## 2024-05-24 - Lightbox ARIA Attributes **Learning:** Adding `role="dialog"`, `aria-modal="true"`, and `aria-label` to custom modal/lightbox overlays ensures screen readers announce them properly instead of just falling back to reading inner content without context. Additionally, toggles that show/hide panels (like the EXIF info button) must use `aria-expanded` and link to the panel via `aria-controls` for proper screen reader communication. **Action:** When building or modifying custom overlays or toggle buttons in the future, always verify that ARIA attributes are set correctly to match the visual behavior. + +## 2024-05-25 - SVG Icon Accessibility +**Learning:** Adding `aria-hidden="true"` to decorative `` icons within interactive elements (like `

{error}

); @@ -162,27 +165,30 @@ export function MapView() { {loading && (
-