feat(linter/jsx-a11y): add fixer for anchor-has-content#4852
Merged
graphite-app[bot] merged 1 commit intomainfrom Aug 13, 2024
Merged
Conversation
Contributor
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
Contributor
Author
CodSpeed Performance ReportMerging #4852 will not alter performanceComparing Summary
|
This was referenced Aug 12, 2024
camc314
reviewed
Aug 12, 2024
camc314
reviewed
Aug 12, 2024
camc314
approved these changes
Aug 12, 2024
a8212ab to
52d2486
Compare
52d2486 to
3758010
Compare
Contributor
Merge activity
|
Add a conditional fix that removes `aria-hidden` from an anchor's child if there is only a single child. This PR also fixes a false positive on hidden anchors. It should report visible anchors with hidden content, not hidden anchors.
3758010 to
a6195a6
Compare
Merged
Boshen
added a commit
that referenced
this pull request
Aug 15, 2024
## [0.7.2] - 2024-08-15 ### Features - 97e38cd linter: Add fixer for unicorn/prefer-optional-catch-binding (#4867) (heygsc) - 93ae1c7 linter: Eslint-plugin-react jsx-props-no-spread-multi (#4866) (keita hino) - 0a23610 linter: Add fixer for unicorn/prefer-array-flat-map (#4844) (heygsc) - 13c7b1b linter/jsx-a11y: Add fixer for aria-unsupported-elements (#4854) (DonIsaac) - a6195a6 linter/jsx-a11y: Add fixer for anchor-has-content (#4852) (DonIsaac) - 4d28d03 task/website: Support render `subschemas.all_of` (#4800) (mysteryven) ### Bug Fixes - 21f5762 codegen: Minify large numbers (#4889) (Boshen) - a08d7a7 linter/jsx-a11y: Reduce false negatives for html-has-lang (#4855) (DonIsaac) - a81ce3a linter/no-unused-vars: Do not delete function expressions when fixing (#4848) (DonIsaac) ### Documentation - 955a4b4 oxlint: Improve cli doc regarding fix and `-D all` (Boshen) ### Refactor - 56f033c linter: Improve diagnostics for several jsx-a11y rules (#4853) (DonIsaac) - c53c210 linter/no-unused-vars: Split fixer logic into multiple files (#4847) (DonIsaac) Co-authored-by: Boshen <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add a conditional fix that removes
aria-hiddenfrom an anchor's child if thereis only a single child. This PR also fixes a false positive on hidden anchors.
It should report visible anchors with hidden content, not hidden anchors.