Skip to content

data-hovered not triggered for Tag with href #9507

@pavsidhu

Description

@pavsidhu

Provide a general summary of the issue here

With React Aria Components, when using a Tag with href, data-hovered doesn't get applied.

🤔 Expected Behavior?

I expect data-hovered=true when I hover over a Tag with href

😯 Current Behavior

data-hovered is not set when I hover over a Tag with href

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

CSS:

@import "tailwindcss";
@plugin "tailwindcss-react-aria-components";

TypeScript:

<TagGroup>
  <Tag id="1" href="/" className="hover:bg-red-500">One</Tag>
</TagGroup>

Version

react-aria-components 1.14.0

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

MacOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions