From d261f2acb43b49a3554a01620545aeee42cf13f2 Mon Sep 17 00:00:00 2001
From: 0m364 <13804150+0m364@users.noreply.github.com>
Date: Sat, 4 Jul 2026 11:11:34 +0000
Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Improve=20accessibili?=
=?UTF-8?q?ty=20of=20anchor=20buttons=20for=20modals?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
💡 What: Added `role="button"` and `aria-haspopup="dialog"` to native `` tags used as buttons, and explicitly bound the Spacebar key to the action to prevent page scrolling.
🎯 Why: Native `` tags only respond to `Enter`. Screen reader and keyboard users expect elements functioning as buttons to also trigger on `Spacebar`. Defaulting to scroll creates a confusing experience.
📸 Before/After: Visuals remain unchanged, but the element now correctly responds to Spacebar without scrolling.
♿ Accessibility: Ensures correct ARIA semantic roles and restores standard keyboard expectations for interactive elements.
---
.Jules/palette.md | 4 ++++
concepts.html | 2 +-
contact.html | 2 +-
modal.js | 6 ++++++
products.html | 2 +-
5 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/.Jules/palette.md b/.Jules/palette.md
index 7c7c523..36ae60a 100644
--- a/.Jules/palette.md
+++ b/.Jules/palette.md
@@ -29,3 +29,7 @@
## 2026-06-12 - Robust Skip-to-Content Links
**Learning:** Adding a "Skip to main content" link is a critical accessibility requirement for keyboard users. To make it robust, it needs to be hidden visually but appear when focused using `transform: translateY(-100%)` instead of magic pixel numbers, and the target container (e.g., `CHARLES WILLIAMS
Products
Concepts
Contact
- OSINT
+ OSINT
diff --git a/contact.html b/contact.html
index b30b503..15d119b 100644
--- a/contact.html
+++ b/contact.html
@@ -49,7 +49,7 @@ Get in Touch