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-03-14 - Radix UI Button asChild pattern for Links
**Learning:** Found an accessibility anti-pattern where standard `<a>` tags were wrapping native `<button>` tags (or components rendering native buttons) to create link-buttons. This results in invalid HTML (interactive element inside an interactive element) and confuses screen readers.
**Action:** Always use Radix UI's `<Button asChild>` to wrap semantic `<a>` tags when you need a link that looks like a button. This preserves the semantic HTML and native accessibility of the anchor tag while applying the Shadcn UI button styling correctly.
Loading