Skip to content

Commit a03b2fe

Browse files
mdoXhmikosR
authored andcommitted
Backport Reboot's th updates
Manually backports #30781 to v4.
1 parent 24572b1 commit a03b2fe

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

scss/_reboot.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,14 @@ caption {
278278
caption-side: bottom;
279279
}
280280

281+
// 1. Removes font-weight bold by inheriting
282+
// 2. Matches default `<td>` alignment by inheriting `text-align`.
283+
// 3. Fix alignment for Safari
284+
281285
th {
282-
// Matches default `<td>` alignment by inheriting from the `<body>`, or the
283-
// closest parent with a set `text-align`.
284-
text-align: inherit;
286+
font-weight: $table-th-font-weight; // 1
287+
text-align: inherit; // 2
288+
text-align: -webkit-match-parent; // 3
285289
}
286290

287291

scss/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ $table-border-color: $border-color !default;
363363

364364
$table-head-bg: $gray-200 !default;
365365
$table-head-color: $gray-700 !default;
366+
$table-th-font-weight: null !default;
366367

367368
$table-dark-color: $white !default;
368369
$table-dark-bg: $gray-800 !default;

0 commit comments

Comments
 (0)