Skip to content

Difficulty with group-{modifier} in Tailwind 3.4.3 #17518

Answered by wongjn
karlsnyder0 asked this question in Help
Discussion options

You must be logged in to vote

If it was working in 3.3.1, I'd say it is purely accidental, since it doesn't seem a like valid Tailwind variant. You'd either want:

group-[&[data-collapsible=icon][data-state=collapsed]]:w-[var(--sidebar-width-icon)]

Or

group-data-[collapsible=icon]:group-data-[state=collapsed]:w-[var(--sidebar-width-icon)]

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@karlsnyder0
Comment options

@karlsnyder0
Comment options

@wongjn
Comment options

wongjn Apr 2, 2025
Collaborator

@karlsnyder0
Comment options

Answer selected by karlsnyder0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants