From 02e920e1a75aaa39b73279dad09b718cf38887b2 Mon Sep 17 00:00:00 2001 From: Jouni Koivuviita Date: Thu, 29 Jan 2015 13:40:59 +0200 Subject: 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(-) (limited to 'WebContent') 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%); } } -- cgit v1.2.3