Skip to content

Nested accordion animated chevron #1070

Discussion options

You must be logged in to vote

Hi @gunnartorfis,

Yeah this makes sense, it's because this rule is too generic as a data-state exists in a few places:

"[data-state=open] &": {
  transform: "rotate(180deg)",
  color: theme.colors.violet800.value
}

You could solve this by being more specific with what you are targetting:

-"[data-state=open] &": {
+[`${StyledButton}[data-state=open] &`]: {
  transform: "rotate(180deg)",
  color: theme.colors.violet800.value
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gunnartorfis
Comment options

Answer selected by gunnartorfis
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