aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis-Maxime Piton <[email protected]>2023-09-13 08:17:23 +0200
committerGitHub <[email protected]>2023-09-13 08:17:23 +0200
commit86672f4222a231bb4a7aa3aabe63a7751c788acd (patch)
tree0c02474beee0920b6e8108fe5037e4c497d16557
parent4724e7ae9a8f8a63d835b959d3fa349680bcbde3 (diff)
downloadbootstrap-86672f4222a231bb4a7aa3aabe63a7751c788acd.tar.xz
bootstrap-86672f4222a231bb4a7aa3aabe63a7751c788acd.zip
Fix table state rendering for color modes (#39033)
-rw-r--r--scss/_variables.scss10
1 files changed, 5 insertions, 5 deletions
diff --git a/scss/_variables.scss b/scss/_variables.scss
index 139462bb4..33ff5c2ff 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -734,7 +734,7 @@ $table-cell-padding-x-sm: .25rem !default;
$table-cell-vertical-align: top !default;
-$table-color: var(--#{$prefix}body-color) !default;
+$table-color: var(--#{$prefix}emphasis-color) !default;
$table-bg: var(--#{$prefix}body-bg) !default;
$table-accent-bg: transparent !default;
@@ -742,17 +742,17 @@ $table-th-font-weight: null !default;
$table-striped-color: $table-color !default;
$table-striped-bg-factor: .05 !default;
-$table-striped-bg: rgba($black, $table-striped-bg-factor) !default;
+$table-striped-bg: rgba(var(--#{$prefix}emphasis-color-rgb), $table-striped-bg-factor) !default;
$table-active-color: $table-color !default;
$table-active-bg-factor: .1 !default;
-$table-active-bg: rgba($black, $table-active-bg-factor) !default;
+$table-active-bg: rgba(var(--#{$prefix}emphasis-color-rgb), $table-active-bg-factor) !default;
$table-hover-color: $table-color !default;
$table-hover-bg-factor: .075 !default;
-$table-hover-bg: rgba($black, $table-hover-bg-factor) !default;
+$table-hover-bg: rgba(var(--#{$prefix}emphasis-color-rgb), $table-hover-bg-factor) !default;
-$table-border-factor: .1 !default;
+$table-border-factor: .2 !default;
$table-border-width: var(--#{$prefix}border-width) !default;
$table-border-color: var(--#{$prefix}border-color) !default;