Skip to content

Commit

Permalink
Change border color Table
Browse files Browse the repository at this point in the history
  • Loading branch information
norddinh committed Dec 16, 2024
1 parent 31ce98d commit 9645be5
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions packages/styles/framework/src/elements/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

td,
th {
border: 1px solid getColor('neutral-fade');
border: var(--border);
border-width: 0;
padding: 20px;
vertical-align: top;
Expand Down Expand Up @@ -71,7 +71,7 @@
}

td {
border-bottom: 1px solid getColor('neutral-fade');
border-bottom: var(--border);

> p {
margin: 0;
Expand All @@ -89,7 +89,6 @@

td,
th {
border-color: currentColor;
color: currentColor;
}
}
Expand Down Expand Up @@ -154,29 +153,29 @@
}

&.has-border-all {
border: 1px solid getColor('neutral-fade');
border: var(--border);

th {
border-right: 1px solid getColor('neutral-fade');
border-right: var(--border);
}

td {
&:not(:last-child) {
border-right: 1px solid getColor('neutral-fade');
border-right: var(--border);
}
}
}

&.has-border-inner {
th {
&:not(:last-child) {
border-right: 1px solid getColor('neutral-fade');
border-right: var(--border);
}
}

td {
&:not(:last-child) {
border-right: 1px solid getColor('neutral-fade');
border-right: var(--border);
}
}
}
Expand Down Expand Up @@ -216,7 +215,7 @@

tr:not(:first-child) {
td {
border-top: 1px solid getColor('neutral');
border-top: var(--border);
}
}

Expand Down

0 comments on commit 9645be5

Please sign in to comment.