-
Notifications
You must be signed in to change notification settings - Fork 1
🎨 Palette: Add aria-label to delete conversation button #488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| ## 2024-05-18 - Missing ARIA label for conversational sidebar delete action | ||
| **Learning:** Found an icon-only button ("×") representing delete in the `ConversationsSidebar` that relied solely on the `title` attribute for accessibility. The `title` attribute is often insufficient for screen readers or when hovered. | ||
| **Action:** Always add explicit `aria-label` to icon-only buttons to guarantee screen reader accessibility. |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -221,6 +221,7 @@ export function ConversationsSidebar({ | |||||
| setConfirmDeleteId(conv.id); | ||||||
| }} | ||||||
| title="Delete conversation" | ||||||
| aria-label="Delete conversation" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this button is repeated for every conversation in the list, using a static
Suggested change
|
||||||
| > | ||||||
| × | ||||||
| </button> | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no guard against opening a new delete confirmation dialog while a delete operation is already in progress (
deletingId). This could lead to inconsistent UI state if the user rapidly clicks delete on multiple conversations.Recommended solution:
Add a check to prevent setting a new confirmation while a delete is ongoing: