Color metric label on hover

This commit is contained in:
Roland Schilter
2017-07-27 09:57:00 +02:00
parent 3784174460
commit bc8d590d9a

View File

@@ -37,7 +37,6 @@ export default class NodeDetailsHealthLinkItem extends React.Component {
render() {
const { id, nodeColor, url, ...props } = this.props;
const labelColor = this.state.hovered && !props.samples ? nodeColor : undefined;
const metricColor = getMetricColor(id);
return (
@@ -53,7 +52,7 @@ export default class NodeDetailsHealthLinkItem extends React.Component {
{...props}
hovered={this.state.hovered}
metricColor={metricColor}
labelColor={labelColor} />
labelColor={this.state.hovered && nodeColor} />
</CloudLink>
);
}