diff --git a/src/components/param/ParamColor.js b/src/components/param/ParamColor.js index aa3da96..e8ecd08 100644 --- a/src/components/param/ParamColor.js +++ b/src/components/param/ParamColor.js @@ -8,13 +8,9 @@ const ParamColor = ({ rendererIndex, paramIndex, value, onChange }) => { const [displayColorPicker, setDisplay] = useState(false); const styles = reactCSS({ 'default': { - swatch: { - padding: '5px', - background: '#fff', - borderRadius: '1px', - boxShadow: '0 0 0 1px rgba(0,0,0,.1)', - display: 'inline-block', - cursor: 'pointer', + btn: { + borderColor: displayColorPicker ? '#44D7B6' : null, + color: displayColorPicker ? '#44D7B6' : null }, container: { position: 'relative', @@ -37,7 +33,7 @@ const ParamColor = ({ rendererIndex, paramIndex, value, onChange }) => { return (
- {