From: Jouni Koivuviita Date: Thu, 29 Jan 2015 11:40:59 +0000 (+0200) Subject: Fix wrong color variable for selectedGrid rows (#16532) X-Git-Tag: 7.4.0.rc1~56 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=52aa0524bdccc59d9157506c604e432afca3f6b9;p=vaadin-framework.git Fix wrong color variable for selectedGrid rows (#16532) Change-Id: Ib8cc41e3f19f912af6267448b9f213cd2f92448e --- 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%); } }