mirror of
https://github.com/weaveworks/scope.git
synced 2026-05-07 01:38:47 +00:00
Color metric label on hover
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user