[v3.4.1] Custom variant for elements that are not descendants of @container
breaks
#13370
Unanswered
hellovietduc
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone!
I have the following situation:
ContentPicker
.PageA
andPageB
.PageA
is an older page that currently doesn't use container queries.PageB
is newer, and is using container queries.I want to write styles for
ContentPicker
component so that it can work in both cases.@tablet-portrait:grid-cols-3
won't work inPageA
.tablet-portrait
is my custom responsive breakpoint.tablet-portrait:grid-cols-3
, it'll work inPageA
but not inPageB
.tablet-portrait:grid-cols-3
after@tablet-portrait:grid-cols-3
, the order in the stylesheet might still be different.What I came up with that worked in v3.3.x was this custom variant:
When used together
@tablet-portrait:grid-cols-3 tablet-portrait:-@:grid-cols-3
:tablet-portrait:-@:grid-cols-3
would work inPageA
.@tablet-portrait:grid-cols-3
would work inPageB
.Important
However, this custom variant breaks after upgrading to v3.4.1!
I guess TW changed something internally that might have broken the way I use the
addVariant
function. I'm using some undocumented API so this is expected. But I still want to get help making this custom variant work again. I'm also open to alternative suggestions.Thanks in advance everyone!
Beta Was this translation helpful? Give feedback.
All reactions