File tree Expand file tree Collapse file tree
x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel Expand file tree Collapse file tree Original file line number Diff line number Diff line change 114114 right : 0 ;
115115}
116116
117- .lnsLayerPanel__paletteColor {
118- height : $euiSizeXS ;
117+ .lnsLayerPanel__palette {
118+ border-radius : 0 0 ($euiBorderRadius - 1px ) ($euiBorderRadius - 1px );
119+
120+ & ::after {
121+ border : none ;
122+ }
119123}
120124
121125.lnsLayerPanel__dimensionLink {
Original file line number Diff line number Diff line change 55 */
66
77import React from 'react' ;
8- import { EuiFlexGroup , EuiFlexItem } from '@elastic/eui' ;
8+ import { EuiColorPaletteDisplay } from '@elastic/eui' ;
99import { AccessorConfig } from '../../../types' ;
1010
1111export function PaletteIndicator ( { accessorConfig } : { accessorConfig : AccessorConfig } ) {
1212 if ( accessorConfig . triggerIcon !== 'colorBy' || ! accessorConfig . palette ) return null ;
1313 return (
14- < EuiFlexGroup className = "lnsLayerPanel__paletteContainer" gutterSize = "none" alignItems = "center" >
15- { accessorConfig . palette . map ( ( color ) => (
16- < EuiFlexItem
17- key = { color }
18- className = "lnsLayerPanel__paletteColor"
19- grow = { true }
20- style = { {
21- backgroundColor : color ,
22- } }
23- />
24- ) ) }
25- </ EuiFlexGroup >
14+ < div className = "lnsLayerPanel__paletteContainer" >
15+ < EuiColorPaletteDisplay
16+ className = "lnsLayerPanel__palette"
17+ size = "xs"
18+ palette = { accessorConfig . palette }
19+ />
20+ </ div >
2621 ) ;
2722}
You can’t perform that action at this time.
0 commit comments