Skip to content

🎨 Palette: Semantic modal trigger accessibility#92

Open
0m364 wants to merge 1 commit into
add-0m364-website-1232764033486168073from
palette-modal-a11y-12263013311770545656
Open

🎨 Palette: Semantic modal trigger accessibility#92
0m364 wants to merge 1 commit into
add-0m364-website-1232764033486168073from
palette-modal-a11y-12263013311770545656

Conversation

@0m364

@0m364 0m364 commented May 23, 2026

Copy link
Copy Markdown
Owner

💡 What: Added role="button" and aria-haspopup="dialog" to the #sitrep-btn links and bound a keydown event listener for the Space key to open the modal.
🎯 Why: Native <a> tags with href="#" used as modal triggers only respond to the Enter key. Screen readers and keyboard users expect elements functioning as buttons to also respond to the Space key. These semantic attributes and keyboard behaviors align the UI element with standard accessibility expectations.
📸 Before/After: N/A (Non-visual behavioral change)
♿ Accessibility: Improves screen reader context and provides full keyboard interactability for the OSINT/Sitrep modal triggers.


PR created automatically by Jules for task 12263013311770545656 started by @0m364

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant