Skip to content

pa11y finding: Search input lacks name for accessibility APIs #2180

@SeanKilleen

Description

@SeanKilleen

A scan using pa11y on my site came back with:

 • Error: This searchinput element does not have a name available to an accessibility API. Valid names are: label element, title undefined, aria-label undefined, aria-labelledby undefined.   ├── WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.InputSearch.Name
   ├── #search
   └── <input type="search" id="search" aria-placeholder="Enter your search term..." class="search-input" tabindex="-1" placeholder="Enter your search term...">

I looked it up and it appears adding a title should be sufficient. PR incoming for the language / title attributes

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions