-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hover on parent element #42
Comments
We support pseudo-elements with the following syntax: var parentStyle = RCSS.registerClass({
background: 'white',
':hover': {
background: 'black'
}
});
var childStyle = RCSS.registerClass({
color: 'black',
':hover': {
color: 'white'
}
}); I think that's sufficient for this case, right? |
No, that is different semantics. That will only change the child style when you hover over the child; the expected behavior is to make the child color white when hover over anywhere on the parent. |
The current solution is to use state in react and based on that change classes or inline styles. I dislike a bit, but goes toward the ideology of this lib, which seems to be a good one. |
Has anyone thought about how to convert the following CSS without using an event handler?
The text was updated successfully, but these errors were encountered: