File tree 1 file changed +3
-17
lines changed
1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -39,23 +39,9 @@ export const SelectMenuButton = forwardRef<
39
39
> ( ( props , ref ) => {
40
40
const { startIcon, ...restProps } = props ;
41
41
return (
42
- < Button
43
- css = { {
44
- // Icon and text should be aligned to the left
45
- justifyContent : "flex-start" ,
46
- flexShrink : 0 ,
47
- } }
48
- variant = "outline"
49
- size = "lg"
50
- className = "flex items-center gap-2"
51
- ref = { ref }
52
- { ...restProps }
53
- >
54
- { startIcon && < div > { startIcon } </ div > }
55
- < span
56
- // Make sure long text does not break the button layout
57
- className = "text-left block overflow-hidden text-ellipsis flex-grow"
58
- >
42
+ < Button variant = "outline" size = "lg" ref = { ref } { ...restProps } >
43
+ { startIcon }
44
+ < span className = "text-left block overflow-hidden text-ellipsis flex-grow" >
59
45
{ props . children }
60
46
</ span >
61
47
< ChevronDownIcon />
You can’t perform that action at this time.
0 commit comments