Skip to content

Commit

Permalink
Merge pull request #14 from tableflowhq/input/disabled
Browse files Browse the repository at this point in the history
Fix Table header variants background color
  • Loading branch information
ciminelli authored Aug 30, 2023
2 parents 843753a + 939b979 commit b37aef2
Showing 1 changed file with 15 additions and 22 deletions.
37 changes: 15 additions & 22 deletions src/Table/style/Default.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ $radius: var(--border-radius-2);
padding: var(--m-xxxs) var(--m-s);
border-bottom: 1px solid var(--color-border);
color: var(--color-text-soft);

&:first-of-type {
border-radius: $radius 0 0 0;
}
&:last-child {
border-radius: 0 $radius 0 0;
}
}
}
}
Expand All @@ -59,25 +66,16 @@ $radius: var(--border-radius-2);
margin-bottom: var(--m-s);
.td {
background-color: var(--color-background-modal);

&:first-of-type,
&:last-child {
border-radius: 0;
}
}
}
}
}

&:not(.fixHeader) .thead {
.tr {
// .td {
// &:first-of-type {
// border-radius: $radius 0 0 0;
// }

// &:last-child {
// border-radius: 0 $radius 0 0;
// }
// }
}
}

.tbody {
.tr {
.td {
Expand All @@ -102,14 +100,6 @@ $radius: var(--border-radius-2);
}
}

// &:nth-child(odd) {
// .td {
// .zebra & {
// background-color: var(--color-background);
// }
// }
// }

&:hover {
box-shadow: 0 0 0 2px var(--color-border);
position: relative;
Expand Down Expand Up @@ -147,6 +137,9 @@ $radius: var(--border-radius-2);

&.dark {
background-color: var(--color-background);
.thead .tr .td {
background-color: var(--color-background-modal);
}
}

&.light {
Expand Down

0 comments on commit b37aef2

Please sign in to comment.