Schedule delete buttons have no accessible name #48
Labels
No labels
bug
chore
data
feature
frontend
good first issue
intermediate
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/cal#48
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What's wrong
The trash buttons in the schedule picker menu are icon-only with no label, so screen readers announce just "button". They are also invisible (opacity 0) until hovered, so keyboard users cannot see them.
How to reproduce
Expected
Each button has a name such as "Delete schedule Fall plan" and shows when its menu item has keyboard focus.
Where to look
web/src/app/components/Navbar.tsx: theFiTrash2buttons inside theMenuItems. There are two copies, desktop and mobile; fix both.aria-label={`Delete schedule ${schedule.name}`}andtype="button".sxon eachMenuItemhides.delete-iconuntil:hover; also show it for&.Mui-focusVisibleand when the button itself is focused.Done when
aria-labelthat includes the schedule name.