Update Select component
* data-placeholder style should match only if true * Adjust corner radius to match cards instead of inputs * Fix classNames call in SelectItem
This commit is contained in:
parent
4e63a6593b
commit
106b2b8ee4
2 changed files with 3 additions and 3 deletions
|
|
@ -34,7 +34,7 @@
|
|||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
&[data-placeholder] > span:not(.SelectIcon) {
|
||||
&[data-placeholder='true'] > span:not(.SelectIcon) {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
|
||||
.Select {
|
||||
background: var(--select-bg);
|
||||
border-radius: $input-corner;
|
||||
border-radius: $card-corner;
|
||||
border: $hover-stroke;
|
||||
box-shadow: $hover-shadow;
|
||||
padding: 0 $unit;
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ const SelectItem = React.forwardRef<HTMLDivElement, Props>(function selectItem(
|
|||
const { altText, iconSrc, ...rest } = props
|
||||
return (
|
||||
<Select.Item
|
||||
className={classNames('SelectItem', props.className)}
|
||||
{...rest}
|
||||
className={classNames({ SelectItem: true }, props.className)}
|
||||
ref={forwardedRef}
|
||||
value={`${value}`}
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in a new issue