@thecb/components 6.0.0-beta.12 → 6.0.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -51,6 +51,7 @@ const DropdownItemWrapper = styled.li`
|
|
|
51
51
|
padding: 1rem;
|
|
52
52
|
box-sizing: border-box;
|
|
53
53
|
width: 100%;
|
|
54
|
+
list-style: none;
|
|
54
55
|
cursor: ${({ disabled }) => (disabled ? "default" : "pointer")};
|
|
55
56
|
|
|
56
57
|
&:hover {
|
|
@@ -230,8 +231,13 @@ const Dropdown = ({
|
|
|
230
231
|
}, [filteredOptions]);
|
|
231
232
|
|
|
232
233
|
return (
|
|
233
|
-
<
|
|
234
|
-
|
|
234
|
+
<Box
|
|
235
|
+
padding="0"
|
|
236
|
+
extraStyles={`position: relative;`}
|
|
237
|
+
minWidth="100%"
|
|
238
|
+
width="100%"
|
|
239
|
+
>
|
|
240
|
+
<Stack direction="row" bottomItem={2}>
|
|
235
241
|
<Box
|
|
236
242
|
as="input"
|
|
237
243
|
aria-multiline="false"
|
|
@@ -261,6 +267,7 @@ const Dropdown = ({
|
|
|
261
267
|
}
|
|
262
268
|
hoverStyles={`background-color: ${themeValues.hoverColor};`}
|
|
263
269
|
isOpen={isOpen}
|
|
270
|
+
minWidth="85%"
|
|
264
271
|
name={autocompleteValue}
|
|
265
272
|
onKeyDown={onKeyDown}
|
|
266
273
|
onClick={onClick}
|
|
@@ -278,7 +285,7 @@ const Dropdown = ({
|
|
|
278
285
|
type="text"
|
|
279
286
|
tabIndex={-1}
|
|
280
287
|
value={inputValue}
|
|
281
|
-
width="
|
|
288
|
+
width="85%"
|
|
282
289
|
dataQa={placeholder}
|
|
283
290
|
/>
|
|
284
291
|
<IconWrapper open={isOpen}>
|
|
@@ -361,7 +368,7 @@ const Dropdown = ({
|
|
|
361
368
|
<Fragment />
|
|
362
369
|
)}
|
|
363
370
|
</Fragment>
|
|
364
|
-
</
|
|
371
|
+
</Box>
|
|
365
372
|
);
|
|
366
373
|
};
|
|
367
374
|
|