Skip to content

Image thumbnails can't be opened via keyboard #2179

Description

@felladrin

Surfaced by a role-based review; verified against current code.

Problem: In client/components/Search/Results/Graphical/ImageResultsList.tsx, each thumbnail is a bare <img> with onClick and onKeyDown (Enter/Space) — but an <img> isn't focusable, so onKeyDown can never fire. Keyboard and switch users can't open the lightbox at all, and the handler gives a false impression of accessibility.

Fix: Make the thumbnail a real control (component="button" / wrap in UnstyledButton, or add role="button" + tabIndex={0}) with an aria-label from the title and a visible focus ring.

Files: client/components/Search/Results/Graphical/ImageResultsList.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions