Skip to content

Commit

Permalink
fix(table): fix tableAlignment for table headers in IE11 (#133)
Browse files Browse the repository at this point in the history
Closes #122
  • Loading branch information
gianluca-r authored and kyubisation committed Aug 21, 2019
1 parent 038185a commit 1e5b950
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions projects/sbb-esta/angular-public/src/styles/typography/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,30 @@ $tableCaptionColor: $sbbColorGrey;

&-align-left {
text-align: left;

/* th in IE11 won't inherit text-align: we apply it through selector */
thead,
tbody {
> tr {
th {
text-align: left;
}
}
}
}

&-align-right {
text-align: right;

/* th in IE11 won't inherit text-align: we apply it through selector */
thead,
tbody {
> tr {
th {
text-align: right;
}
}
}
}
}

Expand Down

0 comments on commit 1e5b950

Please sign in to comment.