This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
react-a11y-anchors should accept content when given a child component #433
Labels
Difficulty: Easy
Someone with little to no experience in TSLint should be able to send a pull request for this issue.
Domain: Accessibility
Rules around accessibility verification, commonly react-a11y-*.
Status: Accepting PRs
Type: Rule Feature
Adding a feature to an existing rule.
Milestone
react-a11y-anchors
passes on the following snippets (assuming each line is a different file as I am focusing this issue on text and nothref
):However, it fails on the following ones:
It's not an uncommon situation, for example when rendering translated strings.
I think it would be reasonable to take
eslint-plugin-jsx-a11y
's approach: accept any React component as valid content, unless it has aaria-hidden
prop.Thoughts?
The text was updated successfully, but these errors were encountered: