Closed
Description
I have the following template code that triggered the require-input-label
lint:
<div class="search-input">
<label class="visually-hidden" for="search-input">Search</label>
<input
id="search-input"
type="search"
placeholder="Search deprecations"
autocomplete="off"
aria-label="Search"
{{on "input" (perform this.searchService.search value="target.value")}}
>
</div>
I was a bit confused as I have label
and an aria-label
, and wasn't sure how to address it.
I ended up removing aria-label
at the suggestion of someone in Discord.
Metadata
Metadata
Assignees
Labels
No labels