Skip to content

Commit

Permalink
feat: adds th null var (#30781)
Browse files Browse the repository at this point in the history
Inherit `font-weight: bold` that comes from user agent stylesheets.
  • Loading branch information
zalog committed Jun 17, 2020
1 parent 088c727 commit 9f9e4d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scss/_reboot.scss
Expand Up @@ -369,12 +369,14 @@ caption {
text-align: left;
}

// 1. Matches default `<td>` alignment by inheriting `text-align`.
// 2. Fix alignment for Safari
// 1. Removes font-weight bold by inheriting
// 2. Matches default `<td>` alignment by inheriting `text-align`.
// 3. Fix alignment for Safari

th {
text-align: inherit; // 1
text-align: -webkit-match-parent; // 2
font-weight: $table-th-font-weight; // 1
text-align: inherit; // 2
text-align: -webkit-match-parent; // 3
}

thead,
Expand Down
2 changes: 2 additions & 0 deletions scss/_variables.scss
Expand Up @@ -487,6 +487,8 @@ $table-cell-vertical-align: top !default;
$table-color: $body-color !default;
$table-bg: transparent !default;

$table-th-font-weight: null !default;

$table-striped-color: $table-color !default;
$table-striped-bg-factor: .05 !default;
$table-striped-bg: rgba($black, $table-striped-bg-factor) !default;
Expand Down

0 comments on commit 9f9e4d0

Please sign in to comment.