Missing focus style for the 'Choose a pattern' modal dialog listbox options #49333
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Package] Edit Site
/packages/edit-site
[Type] Bug
An existing feature does not function as intended
Description
Keyboard users need a visible focus style to see where focus is and consequently be able to use an user interface. This is a basic requirement for accessibility and usability.
When creating a new template in the site editor, the preview options in the 'Choose a pattern' modal dialog do have a hover style:
but they don't have a focus style:
Turns out in the related stylesheet there's a
:focus
rule but it's applied to an element that is not focusable....Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: