Skip to content
Discussion options

You must be logged in to vote

Yeah:

For backwards compatibility, the @variant rules that don't have a body and are defined inline:

@variant hocus (&:hover, &:focus);

And @variant rules that are defined with a body and a @slot:

@variant hocus {
  &:hover, &:focus {
    @slot;
  }
}

Will automatically be upgraded to @custom-variant internally, so no breaking changes are introduced with this PR.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rozsazoltan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant