Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .jules/palette.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 2024-05-18 - Accessibility for Responsive Icon-Only Buttons
**Learning:** When using responsive buttons or links where visible text is hidden on smaller screens via Tailwind classes (e.g., `hidden lg:inline`), ensure the parent interactive element (`<button>` or `<a>`) has an explicit `aria-label` attribute to maintain consistent screen reader accessibility across all viewport sizes. Additionally, structural icon elements (like `<span class="material-symbols-outlined">`) should include `aria-hidden="true"` to prevent screen readers from reading raw ligatures. Crucially, before applying `aria-hidden="true"` to an icon, you must ensure its parent interactive element has an accessible name; otherwise, the interactive element becomes completely invisible to screen readers.
**Action:** Always verify that buttons or links which rely heavily on icons for styling have clear `aria-label`s, and apply `aria-hidden="true"` to the icon elements within them. Apply this pattern consistently across all newly added or modified templates.
Loading