[alt-text] input element with all types should have check #1718
Labels
package: eslint-plugin-template
Angular Template rules
triage
This issue needs to be looked at and categorized by a maintainer
Description and reproduction of the issue
In the rule source code, for input elements, there is a check, that the rule will only apply if the input element has the type
image
. But all other types, such asfile
andtext
should also havearial-label
attribute according to googles web accessability reference from Lighthouse report: https://dequeuniversity.com/rules/axe/4.8/labelRule source code (https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/src/rules/alt-text.ts):
Setting the rule
These will not produce any warning/error - but they should, because they should have arial-label attribute
Versions
Since the link provided to the rule is from the latest main branch, it's not tied to anything local, but here is the versions anyway:
The text was updated successfully, but these errors were encountered: