Skip to content

Fix: add semantics to snippets search box#347

Merged
imantsk merged 1 commit intocore-betafrom
a11y-search
Apr 14, 2026
Merged

Fix: add semantics to snippets search box#347
imantsk merged 1 commit intocore-betafrom
a11y-search

Conversation

@rami-elementor
Copy link
Copy Markdown
Contributor

In the accessibility tree the search box is wrapped in a <p> element (inherited from WordPress, we can't change that).

To improve semantics, we can add a wrapping <search> element (MDN).

Before:

search-before

After:

search-after

@imantsk imantsk merged commit bbfeffc into core-beta Apr 14, 2026
8 checks passed
@imantsk imantsk deleted the a11y-search branch April 14, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants