Skip to content

Commit 73ee64e

Browse files
fix(table): quiet and scroller styles fixed up
1 parent b3fc41b commit 73ee64e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

components/table/index.css

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,6 @@
254254
}
255255
}
256256

257-
.spectrum-Table-scroller {
258-
--spectrum-table-header-background-color: var(--mod-table-header-background-color-scrollable, var(--spectrum-background-layer-1-color, var(--spectrum-gray-75)));
259-
}
260-
261257
.spectrum-Table-row--summary {
262258
--spectrum-table-cell-background-color: var(--highcontrast-table-row-background-color, var(--mod-table-summary-row-background-color, var(--spectrum-table-summary-row-background-color)));
263259

@@ -343,6 +339,17 @@
343339
}
344340
}
345341

342+
/* Quiet table header rows do not have inline borders */
343+
.spectrum-Table--quiet .spectrum-Table-headRow:first-child {
344+
.spectrum-Table-headCell:first-child {
345+
border-inline-start: 0;
346+
}
347+
348+
.spectrum-Table-headCell:last-child {
349+
border-inline-end: 0;
350+
}
351+
}
352+
346353
.spectrum-Table-sortIcon {
347354
&:last-child .spectrum-Table-headCell {
348355
border-start-end-radius: var(--mod-table-border-radius, var(--spectrum-table-border-radius));
@@ -680,10 +687,6 @@
680687
--mod-table-current-header-height should be dynamically updated with JS to match the table header height. */
681688
scroll-padding-top: var(--mod-table-current-header-height, calc((var(--mod-table-header-line-height, var(--spectrum-table-row-line-height)) * var(--mod-table-header-font-size, var(--spectrum-table-row-font-size))) + var(--mod-table-header-row-top-to-text, var(--spectrum-table-header-row-top-to-text)) + var(--mod-table-header-row-bottom-to-text, var(--spectrum-table-header-row-bottom-to-text)) + var(--mod-table-border-width, var(--spectrum-table-border-width))));
682689

683-
&.spectrum-Table--quiet {
684-
border-block-start: none;
685-
}
686-
687690
.spectrum-Table-head {
688691
position: sticky;
689692
inset-block-start: 0;

0 commit comments

Comments
 (0)