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
@@ -1,3 +1,6 @@
## 2024-05-19 - Missing ARIA Labels on Modal Close Buttons
**Learning:** Icon-only close buttons (like the 'X' in ProjectModal and ExperienceModal) were missing ARIA labels, making them inaccessible to screen readers.
**Action:** Always verify that icon-only buttons include descriptive `aria-label` attributes to ensure keyboard and screen reader accessibility.
## 2026-05-31 - Keyboard Accessibility for Custom Interactive Elements
**Learning:** In this application, custom interactive components like `motion.div` are frequently used as clickable cards (`ProjectCard`, `ExperienceCard`), but they lack native keyboard accessibility compared to standard `<button>` or `<a>` elements. This makes them inaccessible to keyboard users and screen readers, who expect to be able to focus the item and trigger it with Enter or Space.
**Action:** When creating or modifying custom clickable cards, always add `role="button"`, `tabIndex={0}`, an `onKeyDown` handler that simulates clicks on Enter/Space, and visible focus indicators like `focus-visible:ring-2`.
2 changes: 1 addition & 1 deletion frontend/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default defineConfig([
},
},
rules: {
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]|motion' }],
},
},
])
Loading