]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fixed when `.table-*` was used on td/th directly
authorLouis-Maxime Piton <louismaxime.piton@orange.com>
Thu, 18 Jul 2024 13:42:50 +0000 (15:42 +0200)
committerLouis-Maxime Piton <louismaxime.piton@orange.com>
Thu, 18 Jul 2024 13:42:50 +0000 (15:42 +0200)
scss/mixins/_table-variants.scss

index 2c5791e53585ee825e12b7f71c978604bf9a01bc..5ac842a3d4a8a77b6afb552e242cbb7d5d1cbd8a 100644 (file)
@@ -1,6 +1,7 @@
 // scss-docs-start table-variant
 @mixin table-variant($state, $background) {
-  .table-#{$state} {
+  .table-#{$state},
+  .table .table-#{$state} {
     $color: color-contrast(opaque($body-bg, $background));
     $hover-bg: mix($color, $background, percentage($table-hover-bg-factor));
     $striped-bg: mix($color, $background, percentage($table-striped-bg-factor));