mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 11:44:26 -06:00
Add cursor pointer to color swatches
This commit is contained in:
parent
07b9735263
commit
778ed912b8
@ -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}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user