Skip to content

Commit b37aef2

Browse files
authored
Merge pull request #14 from tableflowhq/input/disabled
Fix Table header variants background color
2 parents 843753a + 939b979 commit b37aef2

File tree

1 file changed

+15
-22
lines changed

1 file changed

+15
-22
lines changed

src/Table/style/Default.module.scss

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ $radius: var(--border-radius-2);
4343
padding: var(--m-xxxs) var(--m-s);
4444
border-bottom: 1px solid var(--color-border);
4545
color: var(--color-text-soft);
46+
47+
&:first-of-type {
48+
border-radius: $radius 0 0 0;
49+
}
50+
&:last-child {
51+
border-radius: 0 $radius 0 0;
52+
}
4653
}
4754
}
4855
}
@@ -59,25 +66,16 @@ $radius: var(--border-radius-2);
5966
margin-bottom: var(--m-s);
6067
.td {
6168
background-color: var(--color-background-modal);
69+
70+
&:first-of-type,
71+
&:last-child {
72+
border-radius: 0;
73+
}
6274
}
6375
}
6476
}
6577
}
6678

67-
&:not(.fixHeader) .thead {
68-
.tr {
69-
// .td {
70-
// &:first-of-type {
71-
// border-radius: $radius 0 0 0;
72-
// }
73-
74-
// &:last-child {
75-
// border-radius: 0 $radius 0 0;
76-
// }
77-
// }
78-
}
79-
}
80-
8179
.tbody {
8280
.tr {
8381
.td {
@@ -102,14 +100,6 @@ $radius: var(--border-radius-2);
102100
}
103101
}
104102

105-
// &:nth-child(odd) {
106-
// .td {
107-
// .zebra & {
108-
// background-color: var(--color-background);
109-
// }
110-
// }
111-
// }
112-
113103
&:hover {
114104
box-shadow: 0 0 0 2px var(--color-border);
115105
position: relative;
@@ -147,6 +137,9 @@ $radius: var(--border-radius-2);
147137

148138
&.dark {
149139
background-color: var(--color-background);
140+
.thead .tr .td {
141+
background-color: var(--color-background-modal);
142+
}
150143
}
151144

152145
&.light {

0 commit comments

Comments
 (0)