Add cursor pointer to color swatches

This commit is contained in:
Dominik Prokop 2019-01-28 09:25:35 +01:00
parent 07b9735263
commit 778ed912b8

View File

@ -36,7 +36,6 @@ export const ColorSwatch: FunctionComponent<ColorSwatchProps> = ({
background: `${color}`,
marginRight: isSmall ? '0px' : '8px',
boxShadow: isSelected ? `inset 0 0 0 2px ${color}, inset 0 0 0 4px ${selectedSwatchBorder}` : 'none',
cursor: isSelected ? 'default' : 'pointer',
};
return (
@ -44,6 +43,7 @@ export const ColorSwatch: FunctionComponent<ColorSwatchProps> = ({
style={{
display: 'flex',
alignItems: 'center',
cursor: 'pointer',
}}
{...otherProps}
>