Skip to content

Commit 63ef9e2

Browse files
author
prgrmr
committed
fix(style/theme.scss): darken -> color.scale
1 parent ad56f0a commit 63ef9e2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/components/src/__styles__/theme.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use "sass:math";
2+
@use "sass:color";
23
@import './color/colors';
34
$theme: default;
45

@@ -593,7 +594,7 @@ $table-row-hover-bg: $background-color-light;
593594
$table-selected-row-color: inherit;
594595
$table-selected-row-bg: $primary-1;
595596
$table-body-selected-sort-bg: $table-selected-row-bg;
596-
$table-selected-row-hover-bg: darken($table-selected-row-bg, 2%);
597+
$table-selected-row-hover-bg: color.scale($table-selected-row-bg, $lightness: -2%);
597598
$table-expanded-row-bg: #fbfbfb;
598599
$table-padding-vertical: 16px;
599600
$table-padding-horizontal: 16px;
@@ -611,9 +612,9 @@ $table-font-size-md: $table-font-size;
611612
$table-font-size-sm: $table-font-size;
612613
// Sorter
613614
// Legacy:table-header-sort-active-bg` is used for hover not real active
614-
$table-header-sort-active-bg: darken($table-header-bg, 3%);
615+
$table-header-sort-active-bg: color.scale($table-header-bg, $lightness: -3%);
615616
// Filter
616-
$table-header-filter-active-bg: darken($table-header-sort-active-bg, 5%);
617+
$table-header-filter-active-bg: color.scale($table-header-sort-active-bg, $lightness: -5%);
617618
$table-filter-btns-bg: inherit;
618619
$table-filter-dropdown-bg: $component-background;
619620
$table-expand-icon-bg: $component-background;
@@ -796,7 +797,7 @@ $pagination-font-weight-active: 500;
796797
$pagination-item-bg-active: $component-background;
797798
$pagination-item-link-bg: $component-background;
798799
$pagination-item-disabled-color-active: $white;
799-
$pagination-item-disabled-bg-active: darken($disabled-bg, 10%);
800+
$pagination-item-disabled-bg-active: color.scale($disabled-bg, $lightness: -10%);
800801
$pagination-item-input-bg: $component-background;
801802
$pagination-mini-options-size-changer-top: 0px;
802803

0 commit comments

Comments
 (0)