Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
khiga8 opened this issue Feb 12, 2025 · 0 comments · Fixed by #314
Closed

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

khiga8 opened this issue Feb 12, 2025 · 0 comments · Fixed by #314
Assignees
Labels

Comments

@khiga8
Copy link
Contributor

khiga8 commented Feb 12, 2025

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.

@khiga8 khiga8 self-assigned this Feb 12, 2025
@khiga8 khiga8 changed the title [Rule update] Allow <Link to> to have a tooltip [Bug] Treat <Link to> as a non-interactive element Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant