From 9e8f845fbe146d8a7dde07982455edf865668378 Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Fri, 21 Aug 2020 15:22:26 -0700 Subject: [PATCH] Fix plot axis separator line color and hash colors (#3314) * Fixes for NIRVSS UI spectral plot view - Fixes Y axis 2 vertical line color in spectral plot; * Fixes for NIRVSS UI spectral plot view - Fixes Y axis 2 vertical line color in spectral plot; - Tweaks to themed plot hash line colors; --- src/styles/_constants-espresso.scss | 2 +- src/styles/_constants-snow.scss | 4 ++-- src/styles/plotly.scss | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/styles/_constants-espresso.scss b/src/styles/_constants-espresso.scss index 20c22775b5..4098bd20a0 100644 --- a/src/styles/_constants-espresso.scss +++ b/src/styles/_constants-espresso.scss @@ -351,7 +351,7 @@ $colorSummaryFgEm: $colorBodyFg; // Plot $colorPlotBg: rgba(black, 0.1); $colorPlotFg: $colorBodyFg; -$colorPlotHash: black; +$colorPlotHash: $colorPlotFg; $opacityPlotHash: 0.2; $stylePlotHash: dashed; $colorPlotAreaBorder: $colorInteriorBorder; diff --git a/src/styles/_constants-snow.scss b/src/styles/_constants-snow.scss index c6aec4ceb6..d3d1e0908e 100644 --- a/src/styles/_constants-snow.scss +++ b/src/styles/_constants-snow.scss @@ -351,8 +351,8 @@ $colorSummaryFgEm: white; // Plot $colorPlotBg: rgba(black, 0.05); $colorPlotFg: $colorBodyFg; -$colorPlotHash: black; -$opacityPlotHash: 0.2; +$colorPlotHash: $colorPlotFg; +$opacityPlotHash: 0.3; $stylePlotHash: dashed; $colorPlotAreaBorder: $colorInteriorBorder; $colorPlotLabelFg: pushBack($colorPlotFg, 20%); diff --git a/src/styles/plotly.scss b/src/styles/plotly.scss index b5b8a01e49..7be69ce560 100644 --- a/src/styles/plotly.scss +++ b/src/styles/plotly.scss @@ -41,7 +41,8 @@ } path.xy2-y { - stroke: $colorPlotHash !important; + stroke: $colorPlotHash !important; // Using this instead of $colorPlotAreaBorder because that is an rgba + opacity: $opacityPlotHash !important; } }