From 52aa0524bdccc59d9157506c604e432afca3f6b9 Mon Sep 17 00:00:00 2001 From: Jouni Koivuviita Date: Thu, 29 Jan 2015 13:40:59 +0200 Subject: [PATCH] Fix wrong color variable for selectedGrid rows (#16532) Change-Id: Ib8cc41e3f19f912af6267448b9f213cd2f92448e --- WebContent/VAADIN/themes/valo/components/_grid.scss | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/WebContent/VAADIN/themes/valo/components/_grid.scss b/WebContent/VAADIN/themes/valo/components/_grid.scss index 2e76434709..50c7169225 100644 --- a/WebContent/VAADIN/themes/valo/components/_grid.scss +++ b/WebContent/VAADIN/themes/valo/components/_grid.scss @@ -54,15 +54,17 @@ $v-grid-cell-padding-horizontal: $v-table-cell-padding-horizontal !default; // Selected .#{$primary-stylename}-row-selected { + $grid-sel-bg: $v-grid-row-selected-background-color; + > .#{$primary-stylename}-cell { - @include valo-gradient($v-selection-color); - color: valo-font-color($v-selection-color); - text-shadow: valo-text-shadow($font-color: valo-font-color($v-selection-color), $background-color: $v-selection-color); - border-color: adjust-color($v-selection-color, $lightness: -8%, $saturation: -8%); + @include valo-gradient($grid-sel-bg); + color: valo-font-color($grid-sel-bg); + text-shadow: valo-text-shadow($font-color: valo-font-color($grid-sel-bg), $background-color: $grid-sel-bg); + border-color: adjust-color($grid-sel-bg, $lightness: -8%, $saturation: -8%); } > .#{$primary-stylename}-cell-focused:before { - border-color: adjust-color($v-selection-color, $lightness: 20%); + border-color: adjust-color($grid-sel-bg, $lightness: 20%); } } -- 2.39.5