Add border to color picker selector (#1329)

This commit is contained in:
Santosh Bhandari 2021-10-30 18:53:21 +05:45 committed by GitHub
parent a9b44bfb2d
commit 755be351f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,15 @@ export const Color = ({ param, definition, onChange, paramType, componentMeta })
<div className="row mx-0 form-control color-picker-input" onClick={() => setShowPicker(true)}>
<div
className="col-auto"
style={{ float: 'right', width: '20px', height: '20px', backgroundColor: definition.value }}
style={
{
float: 'right',
width: '20px',
height: '20px',
backgroundColor: definition.value,
border: `0.25px solid ${['#ffffff', '#fff', '#1f2936'].includes(definition.value) && '#c5c8c9'}`
}
}
></div>
<div className="col">{definition.value}</div>
</div>