From 692ccf85e78fb4fdbdb256bac174f5391f5fe572 Mon Sep 17 00:00:00 2001 From: Sanjay Kumar Date: Tue, 11 Apr 2017 17:08:09 +0800 Subject: [PATCH] Adding less variables for table head background color and table row hover --- components/style/themes/default.less | 5 +++++ components/table/style/index.less | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/components/style/themes/default.less b/components/style/themes/default.less index 82968408e8..dc0259b61f 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -252,6 +252,11 @@ @spin-dot-size: 20px; @spin-dot-size-lg: 32px; +// Table +// -- +@table-head-background-color: @background-color-base; +@table-row-background-hover : @primary-1; + // TimePicker // --- @time-picker-panel-column-width: 56px; diff --git a/components/table/style/index.less b/components/table/style/index.less index 9c121eee33..0573d09d4e 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -2,7 +2,6 @@ @import "../../style/mixins/index"; @table-prefix-cls: ~"@{ant-prefix}-table"; -@table-head-background-color: @background-color-base; .@{table-prefix-cls}-wrapper { .clearfix; @@ -66,7 +65,7 @@ &.@{table-prefix-cls}-row-hover, &:hover { & > td { - background: @primary-1; + background: @table-row-background-hover; } } }