mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-30 00:29:52 +02:00
table: Add border color relative to theme for accessibility (#25755)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Tables
|
||||
|
||||
@mixin table-row-variant($state, $background) {
|
||||
@mixin table-row-variant($state, $background, $border: null) {
|
||||
// Exact selectors below required to override `.table-striped` and prevent
|
||||
// inheritance to nested tables.
|
||||
.table-#{$state} {
|
||||
@@ -9,6 +9,15 @@
|
||||
> td {
|
||||
background-color: $background;
|
||||
}
|
||||
|
||||
@if $border != null {
|
||||
th,
|
||||
td,
|
||||
thead th,
|
||||
tbody + tbody {
|
||||
border-color: $border;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Hover states for `.table-hover`
|
||||
|
Reference in New Issue
Block a user