Skip to content

Self reference #745

Answered by peduarte
buzinas asked this question in Help
Discussion options

You must be logged in to vote

The & basically references itself:

const Component = styled(RadioGroupPrimitive.Item, {
  bc: '$blackA9',

  '&:hover, &:hover + &': {
    bc: '$warning10',
    transform: 'scale(1.2)',
  },
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by buzinas
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