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.
I have the following template code that triggered the
require-input-labellint:I was a bit confused as I have
labeland anaria-label, and wasn't sure how to address it.I ended up removing
aria-labelat the suggestion of someone in Discord.