diff --git a/.jules/palette.md b/.jules/palette.md new file mode 100644 index 0000000..93a6568 --- /dev/null +++ b/.jules/palette.md @@ -0,0 +1,3 @@ +## 2024-05-29 - Accessible Icon-Only and Responsive Ligature Buttons +**Learning:** Structural icon elements (like ``) must include `aria-hidden="true"` to prevent screen readers from reading raw ligatures. When buttons or links contain these icons and their visible text is hidden responsively (e.g., via `hidden lg:inline` Tailwind classes) or absent entirely, the parent interactive element must have an explicit `aria-label` attribute. Otherwise, it becomes an empty button to screen readers on smaller viewports. +**Action:** Always add `aria-label` to interactive elements containing icons where visible text may be hidden or missing, and apply `aria-hidden="true"` directly to the ligature/icon span. diff --git a/code.html b/code.html index 802d964..61ac1d8 100644 --- a/code.html +++ b/code.html @@ -116,11 +116,11 @@

Input

Generated Output

- -
diff --git a/dashboard.html b/dashboard.html index a73dccc..3cc5ebc 100644 --- a/dashboard.html +++ b/dashboard.html @@ -147,13 +147,13 @@

Generated Ou
- -
diff --git a/glassui.html b/glassui.html index 700dc49..c09cc12 100644 --- a/glassui.html +++ b/glassui.html @@ -147,9 +147,9 @@

+ @@ -206,11 +206,11 @@

Generated Ou
- -