diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 00000000..c185b69d --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,3 @@ +## 2024-05-18 - Screen Reader Compatibility for Loading Spinners +**Learning:** When displaying a loading spinner (like `Loader2` from `lucide-react`) inside a button, screen readers may redundantly or confusingly read out the decorative SVG element if not properly hidden. Additionally, the button itself needs to explicitly declare its busy state. +**Action:** Always add `aria-hidden="true"` to purely decorative loading icons and apply `aria-busy={isLoading}` to the parent `