Skip to content

Commit

Permalink
feat(atoms): change styles in the react-select
Browse files Browse the repository at this point in the history
  • Loading branch information
ej9x committed Dec 3, 2018
1 parent 40ddd0f commit 5e3c88b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/atoms/dataEntry/Select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,27 @@ const customStyles = ({ hasError, zIndex = Z_INDEX.DROPDOWN }) => ({
...style,
backgroundColor: PALETTE.WHITE,
}),
multiValue: (style) => ({
...style,
borderRadius: '13px',
padding: '0 7px',
color: '#878c93',
border: '1px solid #d0d7dd',
backgroundColor: '#fff',
}),
multiValueLabel: (style) => ({
...style,
color: 'inherit',
}),
multiValueRemove: (style) => ({
...style,
color: 'inherit',
'&:hover': {
backgroundColor: 'transparent',
color: 'inherit',
cursor: 'pointer',
},
}),
});

const Select = ({ value, loading, disabled, multiple, options, onChange, placeholder, valueComponent, ...props }: SelectProps) => (
Expand Down

0 comments on commit 5e3c88b

Please sign in to comment.