Skip to content

Adding variants while supporting group-* and peer-* #15409

Answered by adamwathan
devlzcode asked this question in Help
Discussion options

You must be logged in to vote

In v4 the group and peer stuff is indeed all handled automatically 👍 Highly recommend using the CSS syntax by the way instead of the JS APIs, using the JS APIs triggers some very slow backward compatibility code paths that are otherwise completely skipped if we see you are only using modern APIs.

@variant test (&[data-test]);

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@wongjn
Comment options

@devlzcode
Comment options

@wongjn
Comment options

@adamwathan
Comment options

Answer selected by devlzcode
@devlzcode
Comment options

@devlzcode
Comment options

@devlzcode
Comment options

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