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 - Semantic Link Wrapping Issue
**Learning:** React Router and TanStack Router Links often fail to maintain semantic HTML and native visual structure when wrapped inappropriately (like standard links inside `div` or generic anchor tags), and inline interactive elements (like language switches) implemented with non-interactive `<span>` tags break accessibility boundaries (missing tab targets and roles for screen readers).
**Action:** When adding links or interactions, always use Radix UI's `<Button asChild>` to wrap semantic `<a>` or `<Link>` elements. This preserves accessibility, Shadcn button styling, and native HTML structure simultaneously. For inline interactions (e.g. language switchers), ALWAYS replace generic tags with semantic `<button>`s containing `focus-visible` styles and clear `aria-label` definitions.
Loading