]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix custom property values of row overrides individual cell (#34799)
authorbavoco <bavoco@gmail.com>
Wed, 8 Sep 2021 06:07:22 +0000 (08:07 +0200)
committerGitHub <noreply@github.com>
Wed, 8 Sep 2021 06:07:22 +0000 (09:07 +0300)
scss/_tables.scss

index 92556ba05e3d411ad87cfbdb76d5b3168593af4f..d474ad5663e8f99a7a9d13ab0e909ac95b47e2c1 100644 (file)
@@ -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);
   }
 // 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);
   }