Skip to content
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

Message input field: Delete button on image thumbnail missing accessible name #5527

Open
kangabell opened this issue Jan 28, 2025 · 0 comments
Labels
♿ a11y Accessibility

Comments

@kangabell
Copy link
Collaborator

After adding an image to the chat it appears as a thumbnail with a small button with an "x" on it. This button has no accessible name and so it is read by the screen reader as just "button" with no information on what the button does.

WCAG Criteria

2.5.3 Label in Name - A

Test Environment

http://159.89.83.1/c/new

Testing Method

Manual - VO/Safari/MacOS

Screenshot

Button with the letter "x" on it pinned to upper right of a square

Rendered Code

<button type="button" class="absolute right-1 top-1 -translate-y-1/2 translate-x-1/2 rounded-full bg-surface-secondary p-0.5 transition-colors duration-200 hover:bg-surface-primary z-50"><span><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="icon-sm" xmlns="http://www.w3.org/2000/svg" width="32" height="32"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg></span></button>

Action

Add button text or an aria-label that says "delete image" or similar.

Notes

This is an issue identified by Accessibility issues for screenreader users #5187

@berry-13 berry-13 added the ♿ a11y Accessibility label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
♿ a11y Accessibility
Projects
None yet
Development

No branches or pull requests

2 participants