Skip to content

Commit

Permalink
design review
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Jul 2, 2020
1 parent 144cf1b commit 71ce160
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions x-pack/plugins/lens/public/xy_visualization/xy_config_panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,16 @@ export function DimensionEditor(props: VisualizationDimensionEditorProps<State>)
<EuiForm>
<EuiFormRow
display="columnCompressed"
fullWidth
label={i18n.translate('xpack.lens.xyChart.seriesColor.label', {
defaultMessage: 'Series Color',
defaultMessage: 'Series color',
})}
>
<ColorPicker {...props} />
</EuiFormRow>
<EuiFormRow
display="columnCompressed"
fullWidth
label={i18n.translate('xpack.lens.xyChart.axisSide.label', {
defaultMessage: 'Axis side',
})}
Expand Down Expand Up @@ -212,23 +214,17 @@ const ColorPicker = ({
disabled ? tooltipContent.disabled : color ? tooltipContent.custom : tooltipContent.auto
}
delay="long"
anchorClassName="eui-displayBlock"
>
{disabled ? (
<EuiFieldText
compressed={true}
type="text"
disabled={true}
icon={{
type: 'stopSlash',
}}
className="euiFieldText"
value=""
placeholder={autoMessage}
aria-label="Color picker disabled"
/>
) : (
<EuiColorPicker compressed={true} onChange={handleColor} color={color} />
)}
<EuiColorPicker
compressed
onChange={handleColor}
color={disabled ? '' : color}
disabled={disabled}
aria-label={i18n.translate('xpack.lens.xyChart.seriesColor.label', {
defaultMessage: 'Series color',
})}
/>
</EuiToolTip>
);
};

0 comments on commit 71ce160

Please sign in to comment.