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-07-06 - Missing ARIA Labels on Switch Toggles
**Learning:** Custom toggle switches (`role="switch"`) used in the UI, even if they have descriptive text nearby, must explicitly include an `aria-label` (or `aria-labelledby`) for proper screen reader support. The visual context does not automatically translate to the interactive element without it.
**Action:** Ensure all custom toggle switches explicitly provide an `aria-label` attribute if they do not contain embedded visible text.
2 changes: 2 additions & 0 deletions components/fraternitees/fraternitees-portal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ function PluginToggle({
type="button"
role="switch"
aria-checked={enabled}
aria-label={`Toggle ${label}`}
disabled={disabled}
onClick={onToggle}
className={classNames(
Expand Down Expand Up @@ -1038,6 +1039,7 @@ export function FraterniteesWorkspace({
type="button"
role="switch"
aria-checked={dailyAutoSync.enabled}
aria-label="Toggle daily sync"
onClick={() => void updateDailyAutoSync(!dailyAutoSync.enabled)}
className={classNames(
"relative h-7 w-12 shrink-0 rounded-full border transition",
Expand Down
Loading