You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Search field with the button inside has no visible focus state #140
[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] BugAn existing feature does not function as intended
When the search block has the button inside the field, the field has no visible focus state. Focused and unfocused look exactly the same, so keyboard users can't tell they're in it (WCAG 2.4.7, Focus Visible).
The theme's core/search styles in theme.json give .wp-block-search__inside-wrapper a border change on hover, but nothing on focus. A :focus-within style on the wrapper would bring a focus state back.
Where does it happen?
On the site (front end)
It affects the two places that use the button-inside search: the Search template (hidden-search) and Overlay Contents.
Steps to reproduce
Go to a search results page, for example /?s=hello.
Press Tab until the search field has focus.
Compare it with the field when it isn't focused: nothing changes.
Screenshots or screen recording
No response
WordPress version
7.1.3
PHP version
8.3
Ipsum version
trunk
Gutenberg plugin version
24.1.0
Browser and device
Chrome on macOS
Before you submit
I searched the existing issues and this bug hasn't been reported yet.
Related: #44 (keyboard navigation in the accessibility-ready review) and #90 (layout shift when the search button is focused).
[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] BugAn existing feature does not function as intended
Activity