diff --git a/.changeset/long-swans-boil.md b/.changeset/long-swans-boil.md new file mode 100644 index 00000000000..74d4467d355 --- /dev/null +++ b/.changeset/long-swans-boil.md @@ -0,0 +1,5 @@ +--- +"@primer/react": minor +--- + +Remove sxProp from SelectPanel diff --git a/packages/react/src/SelectPanel/SelectPanel.tsx b/packages/react/src/SelectPanel/SelectPanel.tsx index 39d41d26094..9eab00b3075 100644 --- a/packages/react/src/SelectPanel/SelectPanel.tsx +++ b/packages/react/src/SelectPanel/SelectPanel.tsx @@ -100,7 +100,6 @@ export function SelectPanel({ footer, textInputProps, overlayProps, - sx, className, ...listProps }: SelectPanelProps): JSX.Element { @@ -265,7 +264,7 @@ export function SelectPanel({ inputRef={inputRef} // inheriting height and maxHeight ensures that the FilteredActionList is never taller // than the Overlay (which would break scrolling the items) - sx={enabled ? sx : {...sx, height: 'inherit', maxHeight: 'inherit'}} + sx={enabled ? undefined : {height: 'inherit', maxHeight: 'inherit'}} className={enabled ? clsx(className, classes.FilteredActionList) : className} /> {footer && (