File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export class UnconnectedColorscalePicker extends Component {
3030 const colorscale = Array . isArray ( fullValue ) ? fullValue . map ( v => v [ 1 ] ) : null ;
3131
3232 return (
33- < Field { ...this . props } >
33+ < Field { ...this . props } fieldContainerClassName = "field__colorscale" >
3434 < ColorscalePickerWidget
3535 selected = { colorscale }
3636 onColorscaleChange = { this . onUpdate }
Original file line number Diff line number Diff line change @@ -41,8 +41,9 @@ class Scale extends Component {
4141
4242 return (
4343 < div className = "customPickerContainer__outer" >
44- < Colorscale colorscale = { selected } onClick = { this . onClick } />
45-
44+ < div className = "customPickerContainer__inner" >
45+ < Colorscale colorscale = { selected } onClick = { this . onClick } />
46+ </ div >
4647 { showColorscalePicker ? (
4748 < div className = "customPickerContainer" >
4849 < Dropdown
Original file line number Diff line number Diff line change 7878 }
7979 }
8080
81+ & __colorscale {
82+ .field__widget {
83+ padding-right : 0 ;
84+ }
85+ }
86+
8187 .rect ,
8288 .square {
8389 border-color : var (--color-accent );
Original file line number Diff line number Diff line change 11$colorscalepicker-width : 215px ;
2+ $colorscalepicker-height : 20px ;
23
34.colorscalePickerContainer {
45 min-width : $colorscalepicker-width ;
@@ -42,4 +43,8 @@ $colorscalepicker-width: 215px;
4243 width : $colorscalepicker-width ;
4344 text-align : center ;
4445 }
46+
47+ & __inner {
48+ height : $colorscalepicker-height ;
49+ }
4550}
You can’t perform that action at this time.
0 commit comments