Skip to content

Commit

Permalink
Move border to tr
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz committed Jan 8, 2024
1 parent cb883e1 commit 6acab13
Showing 1 changed file with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
margin-block-start: 0;

table,
tbody,
tr {
// Needed to pass border color down to `td` and `th`.
tbody {
// Needed to pass border color down to `tr`.
border-color: inherit;
}

Expand All @@ -13,15 +12,13 @@
padding: 0;
width: 100%;
border-spacing: 0;
border-collapse: collapse;
}

tr {
&:not(:last-of-type) {
th,
td {
border-bottom: 1px solid;
border-color: inherit;
}
border-bottom: 1px solid;
border-color: inherit;
}

th:not(.screen-reader-text),
Expand Down Expand Up @@ -50,10 +47,6 @@
padding-bottom: 0;
}

&:not(:last-of-type) th {
border-bottom: none;
}

td {
text-align: start;
padding-top: 0;
Expand Down

0 comments on commit 6acab13

Please sign in to comment.