fix: update margin on filter chips

This commit is contained in:
Jordan Knott
2020-08-29 02:53:32 -05:00
parent 9541ae70e0
commit a9a1576f46
2 changed files with 16 additions and 8 deletions

View File

@ -11,7 +11,6 @@ const LabelText = styled.span`
`;
const Container = styled.div<{ color?: string }>`
margin: 0.75rem;
min-height: 26px;
min-width: 26px;
font-size: 0.8rem;
@ -53,11 +52,12 @@ type ChipProps = {
label: string;
onClose?: () => void;
color?: string;
className?: string;
};
const Chip: React.FC<ChipProps> = ({ label, onClose, color }) => {
const Chip: React.FC<ChipProps> = ({ label, onClose, color, className }) => {
return (
<Container color={color}>
<Container className={className} color={color}>
<LabelText>{label}</LabelText>
{onClose && (
<CloseButton onClick={() => onClose()}>