Skip to content

Conversation

@emanuele-em
Copy link

πŸ”— Linked issue

Resolves #5492

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)

πŸ“š Description

without the important, the property display is overrided by :where(.i-lucide\:sun) property and :where(.i-lucide\:moon) property

before:
image

after (as expected):

image

πŸ“ Checklist

  • I have linked an issue or discussion.

without the important, the property display is overrided by
:where(.i-lucide\:sun) property and :where(.i-lucide\:moon) property
@github-actions github-actions bot added the v4 #4488 label Nov 27, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 27, 2025

npm i https://pkg.pr.new/@nuxt/ui@5554

commit: 3117a53

@benjamincanac
Copy link
Member

benjamincanac commented Nov 28, 2025

As mentioned in #5492, we need a reproduction to understand your issue. We haven't reproduced any issue with the ColorModeButton anywhere. I'm unable to merge this without understanding the issue first and I don't think using important is the correct solution here.

@emanuele-em
Copy link
Author

I’ve added a screenshot of the issue in the PR description.
My package.json includes:

  • @nuxt/ui: ^4.1.0
  • nuxt: ^4.1.3

The problem is that the Tailwind CSS hidden class is being overridden by the :where(.i-lucide\:sun) selector.

I’m using pnpm as the package manager (not sure if it matters) and testing in the Arc browser.

@benjamincanac
Copy link
Member

Yes but I don't reproduce this behavior anywhere so it must be something related to your config, some examples:

@benjamincanac
Copy link
Member

Did you change CSS layer ordering?

@benjamincanac
Copy link
Member

I just pushed this 2ce9af2 to improve class merging and use inline-block instead of inline but I'm not sure it will solve your issue 😬

@emanuele-em
Copy link
Author

@benjamincanac fixed, the problem was a conflict with nuxt/icons module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v4 #4488

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ColorModeButton renders both icons at once instead of toggling them with the active theme

2 participants