You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.
I have a styles object with nested properties. In my :hover on the parent, I want to change the styles on the child properties...is there a way to do that?
So something like this:
`const styles = {
resultItem: {
[...some styles go here],
symbol: { /* default style for symbol /
fontSize: '1.2rem'
},
name: { / default style for name /
fontSize: '1.4rem'
}
':hover': { / hover selector for resultItem parent /
symbol: { / change symbol style on hovering over parent (resultItem) /
fontSize: '1.4rem'
},
name: { / change name style too on hovering over parent (resultItem) */
fontSize: '1.6rem',
color: 'blue'
}
}
}
}`
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a styles object with nested properties. In my :hover on the parent, I want to change the styles on the child properties...is there a way to do that?
So something like this:
`const styles = {
resultItem: {
[...some styles go here],
symbol: { /* default style for symbol /
fontSize: '1.2rem'
},
name: { / default style for name /
fontSize: '1.4rem'
}
':hover': { / hover selector for resultItem parent /
symbol: { / change symbol style on hovering over parent (resultItem) /
fontSize: '1.4rem'
},
name: { / change name style too on hovering over parent (resultItem) */
fontSize: '1.6rem',
color: 'blue'
}
}
}
}`
The text was updated successfully, but these errors were encountered: