Skip to content
Merged
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
1 change: 1 addition & 0 deletions .jules/picasso.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ Added aria-hidden='true' wrapper to decorative emojis across navigation and head
Learned that missing aria labels for decorative emojis in React can be fixed by wrapping them with <span aria-hidden='true'></span> and fixing text assertions in React Testing Library using getByRole instead of getByText
- Added `aria-hidden='true'` to the decorative phase icon in `ExerciseCard.tsx`.
- Added `focus-visible` utility classes to the close button in `KeyboardShortcutsOverlay.tsx` to improve keyboard navigation.
>> Added aria-labels to SidebarPhaseGroup and ExerciseWidget toggle buttons to improve accessibility for screen readers.
1 change: 1 addition & 0 deletions src/components/ExerciseWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ export default function ExerciseWidget({
onClick={handleToggleSolution}
aria-expanded={showSolution}
aria-controls={solutionId}
aria-label="Toggle solution"
>
{showSolution ? (
<>
Expand Down
1 change: 1 addition & 0 deletions src/components/SidebarPhaseGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function SidebarPhaseGroup({
onClick={() => onToggle(phase.phase)}
aria-expanded={isActive}
aria-controls={`phase-${phase.phase}-days`}
aria-label={`Toggle phase ${phase.phase}`}
>
<span className="phase-toggle-icon" aria-hidden="true">
{icon}
Expand Down
Loading