Skip to content
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

bug: menu item modifer not works with selector #3188

Open
wenerme opened this issue Aug 29, 2024 · 1 comment
Open

bug: menu item modifer not works with selector #3188

wenerme opened this issue Aug 29, 2024 · 1 comment
Labels

Comments

@wenerme
Copy link

wenerme commented Aug 29, 2024

What version of daisyUI are you using?

latest

Which browsers are you seeing the problem on?

Chrome

Reproduction URL

https://play.tailwindcss.com/w6AoHnE3nx

Describe your issue

I want to control the style by data attr

<div class="p-4">
  <ul class="menu w-56 rounded-box bg-base-200">
    <li><a class="active">Item 1</a></li>
    <li><a class="focus">Item 2</a></li>
    <li class="disabled"><a>Item 3</a></li>

    <!-- style not works -->
    <li data-disabled class="data-[disabled]:disabled data-[disabled]:underline"><a>should disabled</a></li>
    <li data-active class="group/item"><a class="group-data-[active]/item:active group-data-[active]/item:underline">should active</a></li>
    <li data-focus class="group/item"><a class="group-data-[focus]/item:active group-data-[focus]/item:underline">should focus</a></li>
  </ul>
</div>

But this not works

Copy link

Thank you @wenerme for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

@wenerme wenerme changed the title bug: data-[disabled]:disabled not works for menu li bug: menu item modifer not works with selector Aug 29, 2024
@saadeghi saadeghi added the v5 label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants