Skip to content

Commit cb5367a

Browse files
committed
remove minwidth from select
1 parent 18e7a57 commit cb5367a

File tree

1 file changed

+0
-8
lines changed
  • packages/react-core/src/next/components/Select

1 file changed

+0
-8
lines changed

packages/react-core/src/next/components/Select/Select.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ export interface SelectProps extends MenuProps, OUIAProps {
2222
onOpenChange?: (isOpen: boolean) => void;
2323
/** Indicates if the select should be without the outer box-shadow */
2424
isPlain?: boolean;
25-
/** Minimum width of the select menu */
26-
minWidth?: string;
2725
/** @hide Forwarded ref */
2826
innerRef?: React.Ref<HTMLDivElement>;
2927
/** z-index of the select menu */
@@ -43,7 +41,6 @@ const SelectBase: React.FunctionComponent<SelectProps & OUIAProps> = ({
4341
toggle,
4442
onOpenChange,
4543
isPlain,
46-
minWidth,
4744
innerRef,
4845
zIndex = 9999,
4946
role = 'listbox',
@@ -103,11 +100,6 @@ const SelectBase: React.FunctionComponent<SelectProps & OUIAProps> = ({
103100
onSelect={(event, itemId) => onSelect && onSelect(event, itemId)}
104101
isPlain={isPlain}
105102
selected={selected}
106-
{...(minWidth && {
107-
style: {
108-
'--pf-c-menu--MinWidth': minWidth
109-
} as React.CSSProperties
110-
})}
111103
{...getOUIAProps(
112104
Select.displayName,
113105
props.ouiaId !== undefined ? props.ouiaId : getDefaultOUIAId(Select.displayName),

0 commit comments

Comments
 (0)