Skip to content

Conversation

@knowler
Copy link
Contributor

@knowler knowler commented Jan 29, 2026

The <search> element’s implicit ARIA role is search, so setting role=search on the nested <form> is redundant and adds noise (i.e. it will show up twice).

If you want to increase support, then the role should be added to the <search> element instead.

@vercel
Copy link

vercel bot commented Jan 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
docs.npmx.dev Ready Ready Preview, Comment Jan 29, 2026 4:10pm
npmx.dev Ready Ready Preview, Comment Jan 29, 2026 4:10pm
1 Skipped Deployment
Project Deployment Review Updated (UTC)
npmx-lunaria Ignored Ignored Jan 29, 2026 4:10pm

Request Review

@knowler
Copy link
Contributor Author

knowler commented Jan 29, 2026

This might need to be amended when/if #313 merges since it’s modifying the same bit of code.

@knowler

This comment was marked as outdated.

The `<search>` element’s implicit ARIA role is `search`, so setting
`role=search` on the nested `<form>` is redundant and adds noise.
@danielroe danielroe added this pull request to the merge queue Jan 29, 2026
Merged via the queue into npmx-dev:main with commit ca3942a Jan 29, 2026
13 checks passed
@knowler knowler deleted the unnecessary-search-role branch January 29, 2026 18:49
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.

2 participants