Skip to content

bug: Menu item hover styles persist through active styles due to importance #2240

@exoRift

Description

@exoRift

What version of daisyUI are you using?

3.5.1

Describe your issue

I've had this issue in one project since I switched to react-daisyui version 4.0.0 where menu item hover styles are marked important, resulting in no click feedback due to the active styles being overridden by the hover styles.
image

However, I can't seem to narrow down the cause at all
image

This issue doesn't happen in my other projects, this is a relatively large project so it's tedious to try removing things until it stops, and it's not the fault of react-daisyui because those other projects where it doesn't happen also use it.

However, a possible solution to this would be to add a check for not :active alongside .active

&:not(.active):hover {

I wish I could reproduce this issue, but I can't and this project is one that I cannot open to the public

What browsers are you seeing the problem on?

All browsers

Reproduction URL

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions