Skip to content

The Open Standard for Generative UI

table style fix accouding to composition (#38)

Ankit Dasbd49f41573dd
diff --git a/js/packages/react-ui/src/components/Table/table.scss b/js/packages/react-ui/src/components/Table/table.scss
index 64eb278c8..ea9eae4cb 100644
--- a/js/packages/react-ui/src/components/Table/table.scss
+++ b/js/packages/react-ui/src/components/Table/table.scss
@@ -12,19 +12,6 @@
width: 100%;
caption-side: bottom;
border-collapse: collapse;
- border: 1px solid map.get(cssUtils.$colors, "strokes", "default");
-}
-
-.crayon-table-header {
- & tr {
- border-bottom: 1px solid map.get(cssUtils.$colors, "strokes", "default");
- border-top: 1px solid map.get(cssUtils.$colors, "strokes", "default");
- background-color: map.get(cssUtils.$colors, "fills", "sunk");
- }
-
- & tr td {
- border-left: 1px solid map.get(cssUtils.$colors, "strokes", "default");
- }
}
.crayon-table-body {
@@ -33,10 +20,6 @@
background-color: map.get(cssUtils.$colors, "fills", "hover");
}
}
-
- & tr:last-child {
- border-bottom: 1px solid map.get(cssUtils.$colors, "strokes", "default");
- }
}
.crayon-table-footer {
@@ -50,15 +33,14 @@
.crayon-table-cell,
.crayon-table-head {
padding: map.get(cssUtils.$spacing, "m");
- border: 1px solid map.get(cssUtils.$colors, "strokes", "default");
color: map.get(cssUtils.$colors, "text", "primary");
}
.crayon-table-head {
- background-color: map.get(cssUtils.$colors, "fills", "sunk");
+ border-bottom: 1px solid map.get(cssUtils.$colors, "strokes", "default");
& .crayon-table-head-label {
@include cssUtils.typography(label, heavy);
- color: map.get(cssUtils.$colors, "text", "primary");
+ color: map.get(cssUtils.$colors, "text", "secondary");
display: inline-flex;
flex-grow: 1;
justify-content: left;
@@ -74,7 +56,7 @@
display: flex;
align-items: center;
justify-content: center;
- color: map.get(cssUtils.$colors, "text", "primary");
+ color: map.get(cssUtils.$colors, "text", "secondary");
}
}
@@ -83,3 +65,11 @@
color: map.get(cssUtils.$colors, "text", "primary");
margin-top: map.get(cssUtils.$spacing, "m");
}
+
+.crayon-table-row {
+ border-bottom: 1px solid map.get(cssUtils.$colors, "strokes", "default");
+
+ &:last-child {
+ border-bottom: 0;
+ }
+}