Skip to content

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

@mikemai2awesome

Description

@mikemai2awesome

From: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/anchor-has-content.md

Alternatively, you may use the title prop or the aria-label prop.

Can we please remove the mention of the HTML title attribute? It is problematic with assistive tech. aria-label and aria-labelledby should be the only alternatives accepted. [source]

Then remove this from the success criteria.

<a title='foo' />

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions