Show close icon on hover (#2034)
* show close icon on hover * style changes to avoid repeating styles
This commit is contained in:
parent
8393232a83
commit
cc109a7125
1 changed files with 8 additions and 1 deletions
|
@ -8,7 +8,6 @@ const MultiSelect = styled(ReactMultiSelect)<{ minWidth?: string }>`
|
|||
|
||||
& > .dropdown-container {
|
||||
height: 32px;
|
||||
|
||||
* {
|
||||
cursor: ${({ disabled }) => (disabled ? 'not-allowed' : 'pointer')};
|
||||
}
|
||||
|
@ -17,6 +16,14 @@ const MultiSelect = styled(ReactMultiSelect)<{ minWidth?: string }>`
|
|||
height: 32px;
|
||||
color: ${({ disabled, theme }) =>
|
||||
disabled ? theme.select.color.disabled : theme.select.color.active};
|
||||
& > .clear-selected-button {
|
||||
display: none;
|
||||
}
|
||||
&:hover {
|
||||
& > .clear-selected-button {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
|
Loading…
Add table
Reference in a new issue