Skip to content

Commit

Permalink
fix(drawing): add sub shadow for color picker control button
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenCodes committed Jan 14, 2021
1 parent 52a08e3 commit 699c3ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/lib/viewers/controls/color-picker/ColorPickerControl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
}
}

.bp-ColorPickerControl-highlight {
padding: 8px;
background-color: $fours;
border-radius: 4px;
}

.bp-ColorPickerControl-swatch {
width: 18px;
height: 18px;
Expand Down
4 changes: 3 additions & 1 deletion src/lib/viewers/controls/color-picker/ColorPickerControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export default function ColorPickerControl({
type="button"
{...rest}
>
<div className="bp-ColorPickerControl-swatch" style={{ backgroundColor: activeColor }} />
<div className="bp-ColorPickerControl-highlight">
<div className="bp-ColorPickerControl-swatch" style={{ backgroundColor: activeColor }} />
</div>
</button>
{isColorPickerToggled && (
<div className="bp-ColorPickerControl-palette">
Expand Down

0 comments on commit 699c3ff

Please sign in to comment.