Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Hover stylings #54

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Hover stylings #54

wants to merge 5 commits into from

Conversation

mclin
Copy link

@mclin mclin commented Aug 10, 2016

Added hover state param to 'value', 'nestedNode' and 'rootNode' stylings.

Rebased #51

@mclin
Copy link
Author

mclin commented Sep 12, 2016

If this is ok, can you merge it?

{...styling('nestedNode', ...stylingArgs)}
onMouseOver={this.handleMouseOver}
onMouseOut={this.handleMouseOut}
>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe mouseEnter/mouseLeave are more appropriate here?

@@ -167,4 +173,11 @@ export default class JSONNestedNode extends React.Component {
}

handleClick = () => this.setState({ expanded: !this.state.expanded });

handleMouseOver = (e) => {
e.stopPropagation();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to stop propagation?

@alexkuz
Copy link
Owner

alexkuz commented Nov 20, 2016

@mclin sorry it took me so long to review that :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants