Skip to content

[Bug] Treat <Link to> as a non-interactive element #313

Closed
@khiga8

Description

@khiga8

I noticed the a11y-tooltip-interactive-trigger hasn't been enabled yet in dotcom - we should enable it because it's super valuable and prevents tooltip misuse!

I turned it on to see what failures would be raised, and noticed 1 false positive scenario where

<Tooltip ...>
  <Link to={href} >
</Tooltip>

is getting message:

Anchor tags without an href attribute are not interactive, therefore they cannot be used as a trigger for a tooltip. Please add an href attribute or use an alternative interactive element instead

The rule should be updated to not treat <Link to> as a non-interactive element.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions