Skip to content

Commit

Permalink
feat(#2162): add design tokens for table
Browse files Browse the repository at this point in the history
  • Loading branch information
vanessatran-ddi authored and ArakTaiRoth committed Oct 23, 2024
1 parent b7220ca commit a4f3a32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libs/web-components/src/assets/css/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ goa-table[variant="relaxed"] td {

goa-table thead th {
background-color: var(--goa-color-greyscale-white);
color: var(--goa-color-text-secondary);
color: var(--goa-table-color-heading);
padding: var(--goa-space-s) var(--goa-table-header-padding, var(--goa-space-m)) var(--goa-space-xs) var(--goa-table-header-padding, var(--goa-space-m));
text-align: left;
border-bottom: 2px solid var(--goa-color-greyscale-600);
border-bottom: 2px solid var(--goa-table-color-border-heading);
vertical-align: bottom;
}

Expand Down
3 changes: 1 addition & 2 deletions libs/web-components/src/components/table/Table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@
class={`goatable ${variant}`}
class:sticky={_stickyHeader}
style={`
overflow-x: auto;
${`width: ${width || "100%"};`}
${calculateMargin(mt, mr, mb, ml)}
`}
Expand All @@ -150,4 +149,4 @@
table {
border-collapse: collapse;
}
</style>
</style>

0 comments on commit a4f3a32

Please sign in to comment.