fix(a11y): add tooltips and aria attributes to agent view toggle#1937
fix(a11y): add tooltips and aria attributes to agent view toggle#1937bluzername wants to merge 1 commit intopaperclipai:masterfrom
Conversation
The list/org view toggle buttons on the Agents page was two icon-only buttons with no title, no aria-label, and no aria-pressed. Users could not tell what each icon mean without clicking it, and screen readers had zero context. Added: - title="List view" / "Org chart view" for hover tooltips - aria-label for screen reader announcement - aria-pressed to indicate which view is currently active - role="group" with aria-label on the container Now hovering over the icons show what each view is, and screen readers announce "List view, pressed" vs "Org chart view, not pressed".
Greptile SummaryThis PR adds accessibility improvements to the Agents page view toggle, including Confidence Score: 5/5Safe to merge — the code changes are correct WAI-ARIA additions with no functional risk. All changes are additive HTML attribute additions. No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "fix(a11y): add labels and aria-pressed t..." | Re-trigger Greptile |
Problem
On the Agents page, there are two small icon buttons for switching between list view and org chart view. But these buttons had:
I was confused the first time I see these buttons because one is a list icon and the other is a git-branch icon, and without hovering or clicking I had no idea what they do. Specially the git-branch icon - is it for branches? Repos? No, it's for org chart view.
What I changed
titleto each button: "List view" and "Org chart view"aria-labelmatching the title for screen readersaria-pressedto indicate which view is currently selectedrole="group"witharia-label="View mode"on the container divHow to test
1 file, 7 lines added.