ampproject / ampproject/amphtml
Invalid ARIA role="text" in <amp-timeago/>
Open
Related to: Accessibility
Stale
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
This tag has the Lighthouse Accessibility issue, which will throw [role] values are not valid.
This is a related material https://github.com/dequelabs/axe-core/issues/1597, So "role = text" was adding to the axe-core last year, but is only valid in span and div elements.
Contributor guide
Research direction
Start by locating the amp-timeago component and inspect where role="text" is added. Verify the Lighthouse or axe-core report for the component, then confirm the invalid ARIA role is no longer present and the accessibility warning is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- accessibility
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100