🌐 AI搜索 & 代理 主页
Skip to content

Commit d9900ab

Browse files
authored
fix(tables): add in missing Bootstrap variant class bg-active for dark tables (#4098)
1 parent e35ad51 commit d9900ab

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/_variables.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ $bv-enable-table-stacked: true !default;
8888
$b-table-stacked-heading-width: 40% !default;
8989
$b-table-stacked-gap: 1rem !default;
9090

91+
// Bootstrap v4.3 is missing the "active" variant for dark tables
92+
// Which translates to `bg-active`, but only for tables
93+
$table-dark-active-bg: $table-dark-hover-bg !default;
94+
9195
// --- Toasts ---
9296

9397
// Toaster defaults

src/components/table/_table.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@
3434
caption-side: top !important;
3535
}
3636
}
37+
38+
// Add in missing `bg-active` class for table tbody rows
39+
// Bootstrap v4.3 is missing this for dark tables
40+
// `bg-active` class cannot be applied to individual cells
41+
> tbody > .bg-active {
42+
&,
43+
> th,
44+
> td {
45+
background-color: $table-dark-active-bg;
46+
}
47+
}
3748
}
3849

3950
// --- Table sticky header styling ---

0 commit comments

Comments
 (0)