Skip to content

Commit

Permalink
Monitor Tab - Crosshair Color is too light (#888)
Browse files Browse the repository at this point in the history
* Color

Signed-off-by: nofar9792 <nofar.cohen@logz.io>

* Move color to css

Signed-off-by: nofar9792 <nofar.cohen@logz.io>
  • Loading branch information
nofar9792 committed Feb 21, 2022
1 parent 5c613b4 commit 676a90b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,7 @@ exports[`<ServiceGraph> Base graph should be displayed 1`] = `
values={Array []}
>
<div
style={
Object {
"width": 140,
}
}
className="crosshair-value"
/>
</Crosshair>
</XYPlot>
Expand Down Expand Up @@ -273,11 +269,7 @@ exports[`<ServiceGraph> Base graph with custom color should be displayed 1`] = `
values={Array []}
>
<div
style={
Object {
"width": 140,
}
}
className="crosshair-value"
/>
</Crosshair>
</XYPlot>
Expand Down Expand Up @@ -391,11 +383,7 @@ exports[`<ServiceGraph> Base graph with horizontal lines should be displayed 1`]
values={Array []}
>
<div
style={
Object {
"width": 140,
}
}
className="crosshair-value"
/>
</Crosshair>
</XYPlot>
Expand Down Expand Up @@ -505,11 +493,7 @@ exports[`<ServiceGraph> Base graph with legends should be displayed 1`] = `
values={Array []}
>
<div
style={
Object {
"width": 140,
}
}
className="crosshair-value"
/>
</Crosshair>
<DiscreteColorLegendItem
Expand Down Expand Up @@ -640,11 +624,7 @@ exports[`<ServiceGraph> Crosshair map test 1`] = `
values={Array []}
>
<div
style={
Object {
"width": 140,
}
}
className="crosshair-value"
/>
</Crosshair>
</XYPlot>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,8 @@ limitations under the License.
text-align: center;
display: table-cell;
}

.crosshair-value {
width: 140;
color: #6b6b76;
}
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export class ServiceGraphImpl extends React.PureComponent<TProps> {
<YAxis />
{this.renderLines()}
<Crosshair values={this.state.crosshairValues}>
<div style={{ width: 140 }}>
<div className="crosshair-value">
{this.state.crosshairValues[0] &&
`${new Date(this.state.crosshairValues[0].x).toLocaleDateString()} ${new Date(
this.state.crosshairValues[0].x
Expand Down

0 comments on commit 676a90b

Please sign in to comment.