aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbavoco <[email protected]>2021-09-08 08:07:22 +0200
committerGitHub <[email protected]>2021-09-08 09:07:22 +0300
commit00a230a6a7903053aa4effe4c1ca107bc068a94b (patch)
tree4c3d84d6c191df11e6208050639e91933b55aedc
parent395b50a5b55beb5dd90a002167b6f12348bbefa6 (diff)
downloadbootstrap-00a230a6a7903053aa4effe4c1ca107bc068a94b.tar.xz
bootstrap-00a230a6a7903053aa4effe4c1ca107bc068a94b.zip
fix custom property values of row overrides individual cell (#34799)
-rw-r--r--scss/_tables.scss4
1 files changed, 2 insertions, 2 deletions
diff --git a/scss/_tables.scss b/scss/_tables.scss
index 92556ba05..d474ad566 100644
--- a/scss/_tables.scss
+++ b/scss/_tables.scss
@@ -98,7 +98,7 @@
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
.table-striped {
- > tbody > tr:nth-of-type(#{$table-striped-order}) {
+ > tbody > tr:nth-of-type(#{$table-striped-order}) > * {
--#{$variable-prefix}table-accent-bg: var(--#{$variable-prefix}table-striped-bg);
color: var(--#{$variable-prefix}table-striped-color);
}
@@ -118,7 +118,7 @@
// Placed here since it has to come after the potential zebra striping
.table-hover {
- > tbody > tr:hover {
+ > tbody > tr:hover > * {
--#{$variable-prefix}table-accent-bg: var(--#{$variable-prefix}table-hover-bg);
color: var(--#{$variable-prefix}table-hover-color);
}