[feature request]: Allow aria-label to suppress template-accessibility-alt-text violation
Open
- Dominant language
- TypeScript
- Stars
- 2.5k
- Forks
- 232
- PR merge metrics
- No merged PRs in 30d
Description
I am facing a use case where I do not want to specify an empty or non-empty alt text on an image element. However, I still want to provide an aria-label for assistive technologies.
Would it be possible for `template-accessibility-alt-text` to consider `aria-label` to be an acceptable alternative (either by default or as a rule option)?
Contributor guide
Research direction
Start by locating the implementation and tests for the template-accessibility-alt-text rule. Check how image alt text is currently validated, then define the expected behavior for aria-label and verify that the rule accepts it without weakening other accessibility checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- accessibility, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100