Skip to content

fix: remove title from the anchor has content rule#1063

Open
TMaszko wants to merge 2 commits intojsx-eslint:mainfrom
TMaszko:fix/1060-remove-title-from-anchor-has-content-rule
Open

fix: remove title from the anchor has content rule#1063
TMaszko wants to merge 2 commits intojsx-eslint:mainfrom
TMaszko:fix/1060-remove-title-from-anchor-has-content-rule

Conversation

@TMaszko
Copy link
Copy Markdown

@TMaszko TMaszko commented Oct 25, 2025

Closes #1060

},
{ code: '<a title={title} />' },
{ code: '<a aria-label={ariaLabel} />' },
{ code: '<a title={title} aria-label={ariaLabel} />' },
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, i didn't look closely at this before, but having both title and aria-label is definitely going to create inconsistency across screen readers, so this one should be moved to invalid as well.

thank you so much for taking this on! glad to see some movements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

jsx-a11y/anchor-has-content: do not encourage title attribute usage

2 participants