-
Hi, I'm trying to apply styles conditionally based on multiple My Use Case:What I tried (but doesn’t work): <div
data-sidebar-state="open"
data-device="mobile"
className="group ...."
>
<div className="group-data-[sidebar-state=open][device=mobile]:cssClasse ....">
Sidebar Content
</div>
</div> Is there a native way in Tailwind to apply styles only when multiple Thanks in advance for any guidance! 🙌 |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Feb 9, 2025
Replies: 1 comment 1 reply
-
You can do: <div className="group-data-[sidebar-state=open]:group-data-[device=mobile]:className"> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
selllami
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do: