File tree 2 files changed +26
-6
lines changed
packages/bento-design-system/src/Table
2 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,23 @@ export const table = style({
9
9
isolation : "isolate" ,
10
10
} ) ;
11
11
12
- export const lastLeftStickyColumn = bentoSprinkles ( {
13
- background : "backgroundPrimary" ,
14
- paddingRight : 8 ,
12
+ export const lastLeftStickyColumn = strictRecipe ( {
13
+ variants : {
14
+ withDividers : {
15
+ true : style ( [
16
+ {
17
+ paddingRight : 2 ,
18
+ } ,
19
+ bentoSprinkles ( {
20
+ background : "outlineDecorative" ,
21
+ } ) ,
22
+ ] ) ,
23
+ false : bentoSprinkles ( {
24
+ background : "backgroundPrimary" ,
25
+ paddingRight : 8 ,
26
+ } ) ,
27
+ } ,
28
+ } ,
15
29
} ) ;
16
30
17
31
export const columnHeader = strictRecipe ( {
Original file line number Diff line number Diff line change @@ -585,7 +585,10 @@ function ColumnHeader<D extends Record<string, unknown>>({
585
585
586
586
return (
587
587
< Box
588
- className = { [ lastLeftSticky && lastLeftStickyColumn , stickyHeaders && stickyColumnHeader ] }
588
+ className = { [
589
+ lastLeftSticky && lastLeftStickyColumn ( { withDividers } ) ,
590
+ stickyHeaders && stickyColumnHeader ,
591
+ ] }
589
592
style = { {
590
593
...style ,
591
594
gridColumnEnd : column . columns ? `span ${ column . columns . length } ` : undefined ,
@@ -650,7 +653,10 @@ function ColumnFooter<D extends Record<string, unknown>>({
650
653
651
654
return (
652
655
< Box
653
- className = { [ lastLeftSticky && lastLeftStickyColumn , stickyFooters && stickyColumnFooter ] }
656
+ className = { [
657
+ lastLeftSticky && lastLeftStickyColumn ( { withDividers } ) ,
658
+ stickyFooters && stickyColumnFooter ,
659
+ ] }
654
660
style = { {
655
661
...style ,
656
662
zIndex : sticky ? zIndexes . leftStickyHeader : zIndexes . header ,
@@ -750,7 +756,7 @@ function CellContainer({
750
756
const tableConfig = useBentoConfig ( ) . table ;
751
757
752
758
return (
753
- < Box className = { lastLeftSticky && lastLeftStickyColumn } style = { style } >
759
+ < Box className = { lastLeftSticky && lastLeftStickyColumn ( { withDividers } ) } style = { style } >
754
760
< Box
755
761
background = { index % 2 === 0 ? tableConfig . evenRowsBackgroundColor : "backgroundPrimary" }
756
762
className = { [
You can’t perform that action at this time.
0 commit comments