File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
packages/react/src/SelectPanel Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @primer/react ' : major
3
+ ---
4
+
5
+ Remove sx prop support from the SelectPanel component.
Original file line number Diff line number Diff line change 99
99
}
100
100
101
101
.FilteredActionList {
102
+ /* inheriting height and maxHeight ensures that the FilteredActionList is never taller
103
+ than the Overlay (which would break scrolling the items) */
102
104
height : inherit;
103
105
max-height : inherit;
104
106
}
238
240
inset : 0 ;
239
241
background-color : var (--overlay-backdrop-bgColor );
240
242
}
243
+
244
+ .TextInput {
245
+ margin : var (--base-size-8 );
246
+ }
Original file line number Diff line number Diff line change @@ -178,7 +178,6 @@ function Panel({
178
178
footer,
179
179
textInputProps,
180
180
overlayProps,
181
- sx,
182
181
loading,
183
182
initialLoadingType = 'spinner' ,
184
183
className,
@@ -656,7 +655,7 @@ function Panel({
656
655
657
656
const extendedTextInputProps : Partial < TextInputProps > = useMemo ( ( ) => {
658
657
return {
659
- sx : { m : 2 } ,
658
+ className : classes . TextInput ,
660
659
contrast : true ,
661
660
leadingVisual : SearchIcon ,
662
661
'aria-label' : inputLabel ,
@@ -861,9 +860,6 @@ function Panel({
861
860
: EMPTY_MESSAGE . description || EMPTY_MESSAGE . description ,
862
861
} }
863
862
fullScreenOnNarrow = { usingFullScreenOnNarrow }
864
- // inheriting height and maxHeight ensures that the FilteredActionList is never taller
865
- // than the Overlay (which would break scrolling the items)
866
- sx = { sx }
867
863
className = { clsx ( className , classes . FilteredActionList ) }
868
864
/>
869
865
{ footer ? (
You can’t perform that action at this time.
0 commit comments