mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
Add border to color picker selector (#1329)
This commit is contained in:
parent
a9b44bfb2d
commit
755be351f9
1 changed files with 9 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue