Skip to content
Snippets Groups Projects
Commit 0d507c30 authored by luna215's avatar luna215
Browse files

reverted back to the left border style

parent 5e309c1b
No related branches found
No related tags found
No related merge requests found
......@@ -250,10 +250,7 @@ export class ColorControl extends SimpleParam<PD.Color> {
}
renderControl() {
let rgb: any[] = Color.toStyle(this.props.value).replace('rgb(', '').split(', ');
rgb = rgb.map(c => parseInt(c));
let secondArg = `rgb(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 0.0)`;
return <select value={this.props.value} onChange={this.onChange} style={{background: `linear-gradient(90deg, ${Color.toStyle(this.props.value)}, ${secondArg})`}}>
return <select value={this.props.value} onChange={this.onChange} style={{ borderLeft: `16px solid ${Color.toStyle(this.props.value)}` }}>
{ColorValueOption(this.props.value)}
{ColorOptions()}
</select>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment