Search input missing id, name, autocomplete, and accessible label
Open
@tejaswiverma121-byte is already working on this.
Since Sep 14, 2026.
framework/gatsby
help wanted
kind/bug
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 1.6k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 18
Description
Description
On the Resources page (and other pages utilizing SearchBox), Chrome DevTools flags accessibility and best-practice warnings for the search bar:
A form field element should have an id or name attributeAn element doesn't have an autocomplete attributeNo label associated with a form field
Insrc/reusecore/Search/index.js,<DebounceInput />lacks these attributes, which affects screen reader navigation and browser autofill compatibility.
Expected Behavior
The search input should:
- Have an accessible label via
aria-label="Search resources" - Include explicit
id="resource-search"andname="resource-search"attributes - Include
autoComplete="off"(or"search") to satisfy HTML form best practices
Screenshots
flowchart LR
subgraph Current ["❌ Current Implementation"]
direction TB
A1["<DebounceInput />"] --> B1["Has only: type, value, placeholder"]
B1 --> C1["Accessibility Tree: No Accessible Name"]
C1 --> D1["⚠️ DevTools Warnings:<br/>• Missing id/name<br/>• Missing autocomplete<br/>• No label associated"]
end
subgraph Proposed ["✅ Proposed Implementation"]
direction TB
A2["<DebounceInput />"] --> B2["Adds: id, name, autoComplete, aria-label"]
B2 --> C2["Accessibility Tree: Label = 'Search resources'"]
C2 --> D2["🎉 Passes all accessibility audits"]
end
Current -.-> Proposed
Environment:
- Host OS:macOS
- Browser:Chrome
Contributor Resources and Handbook
The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.
- 📚 See contributing instructions.
- 🎨 Wireframes and designs for Layer5 site in Figma (open invite)
- 🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack.
Join the Layer5 Community by submitting your community member form.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.