@@ -80,14 +80,7 @@ export const SingleSelectDropdown: React.FC<SingleSelectDropdownProps> = ({
8080 e . currentTarget . style . boxShadow = '0 1px 2px 0 rgba(0, 0, 0, 0.05)' ;
8181 } }
8282 >
83- < Box
84- display = "flex"
85- alignItems = "center"
86- flex = "1"
87- gap = "8px"
88- flexWrap = "wrap"
89- minHeight = "32px"
90- >
83+ < Box display = "flex" alignItems = "center" flex = "1" gap = "8px" flexWrap = "wrap" minHeight = "32px" >
9184 { selectedValue ? (
9285 < Box
9386 display = "inline-flex"
@@ -130,22 +123,12 @@ export const SingleSelectDropdown: React.FC<SingleSelectDropdownProps> = ({
130123 </ button >
131124 </ Box >
132125 ) : (
133- < Text
134- fontFamily = "system-ui, -apple-system, sans-serif"
135- fontSize = "14px"
136- color = "#9ca3af"
137- >
126+ < Text fontFamily = "system-ui, -apple-system, sans-serif" fontSize = "14px" color = "#9ca3af" >
138127 { placeholder }
139128 </ Text >
140129 ) }
141130 </ Box >
142- < Box
143- as = "span"
144- fontSize = "12px"
145- color = "#9ca3af"
146- ml = "8px"
147- flexShrink = { 0 }
148- >
131+ < Box as = "span" fontSize = "12px" color = "#9ca3af" ml = "8px" flexShrink = { 0 } >
149132 { isOpen ? '▲' : '▼' }
150133 </ Box >
151134 </ button >
@@ -189,12 +172,14 @@ export const SingleSelectDropdown: React.FC<SingleSelectDropdownProps> = ({
189172 appearance : 'none' ,
190173 WebkitAppearance : 'none' ,
191174 MozAppearance : 'none' ,
192- border : selectedValue === option ? `1px solid ${ COLORS . teal } ` : '1px solid #d1d5db' ,
175+ border :
176+ selectedValue === option ? `1px solid ${ COLORS . teal } ` : '1px solid #d1d5db' ,
193177 borderRadius : '3px' ,
194178 backgroundColor : selectedValue === option ? COLORS . teal : 'white' ,
195- backgroundImage : selectedValue === option
196- ? "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M10 3L4.5 8.5L2 6l1.5-1.5L4.5 6L8.5 2L10 3z'/%3E%3C/svg%3E\")"
197- : 'none' ,
179+ backgroundImage :
180+ selectedValue === option
181+ ? "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M10 3L4.5 8.5L2 6l1.5-1.5L4.5 6L8.5 2L10 3z'/%3E%3C/svg%3E\")"
182+ : 'none' ,
198183 backgroundRepeat : 'no-repeat' ,
199184 backgroundPosition : 'center' ,
200185 backgroundSize : '12px 12px' ,
0 commit comments