Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Gallery block: images selection and removal not keyboard accessible #3836
In the Gallery block, clicking on an image makes the "remove image" button appear:
However, when using only the keyboard, the images can't be selected nor the remove button appears (it's not rendered by default).
Any functionality should be operable also when using only the keyboard. Instead of making the images clickable, I'd recommend to use a separate control always rendered in the markup that becomes visible on focus. This control should be properly labeled and have some reference to the image that will be removed.
Aside: when an image is "visually selected", it can't be de-selected. I wonder if the selection is really necessary, as the only available action seems to be removing the images one by one.
Reporting from #3790:
Worth noting the gallery block, when an image is selected, displays a "remove image" button that uses