File tree 2 files changed +10
-2
lines changed
packages/clerk-js/src/ui/components/PricingTable
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @clerk/clerk-js ' : patch
3
+ ---
4
+
5
+ Add background color to ` <PricingTableMatrix /> ` elements to ensure sticky elements cover the scrollable content.
Original file line number Diff line number Diff line change @@ -72,15 +72,16 @@ export function PricingTableMatrix({
72
72
< InternalThemeProvider >
73
73
< Box
74
74
elementDescriptor = { descriptors . pricingTableMatrixRoot }
75
- sx = { {
75
+ sx = { t => ( {
76
76
position : 'relative' ,
77
77
minWidth : '100%' ,
78
78
display : 'grid' ,
79
79
isolation : 'isolate' ,
80
+ backgroundColor : t . colors . $colorBackground ,
80
81
[ mqu . md ] : {
81
82
overflowX : 'auto' ,
82
83
} ,
83
- } }
84
+ } ) }
84
85
>
85
86
< Box
86
87
elementDescriptor = { descriptors . pricingTableMatrixTable }
@@ -92,9 +93,11 @@ export function PricingTableMatrix({
92
93
sx = { t => ( {
93
94
position : 'sticky' ,
94
95
top : 0 ,
96
+ backgroundColor : t . colors . $colorBackground ,
95
97
borderBottomWidth : t . borderWidths . $normal ,
96
98
borderBottomStyle : t . borderStyles . $solid ,
97
99
borderBottomColor : t . colors . $neutralAlpha100 ,
100
+ zIndex : 1 ,
98
101
} ) }
99
102
>
100
103
< Box
You can’t perform that action at this time.
0 commit comments