Skip to content

Commit

Permalink
[ML] update chart_switch styles
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Jun 4, 2021
1 parent 3cb6b14 commit d699e9e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
}
}

.lnsChartSwitch__options {
.euiSelectableListItem__append {
display: flex;
align-items: center;
}
}

.lnsChartSwitch__summaryIcon {
margin-right: $euiSizeS;
transform: translateY(-1px);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,17 +297,11 @@ export const ChartSwitch = memo(function ChartSwitch(props: Props) {
<EuiIcon className="lnsChartSwitch__chartIcon" type={v.icon || 'empty'} />
),
append: (
<EuiFlexGroup gutterSize="xs" responsive={false}>
{v.showBetaBadge ? (
<EuiFlexItem grow={false}>
<EuiBadge color="hollow">
<FormattedMessage
id="xpack.lens.chartSwitch.betaLabel"
defaultMessage="Beta"
/>
</EuiBadge>
</EuiFlexItem>
) : null}
<EuiFlexGroup
gutterSize="xs"
responsive={false}
style={{ display: 'inline-flex' }}
>
{v.selection.dataLoss !== 'nothing' ? (
<EuiFlexItem grow={false}>
<EuiIconTip
Expand All @@ -330,6 +324,16 @@ export const ChartSwitch = memo(function ChartSwitch(props: Props) {
/>
</EuiFlexItem>
) : null}
{v.showBetaBadge ? (
<EuiFlexItem grow={false}>
<EuiBadge color="hollow">
<FormattedMessage
id="xpack.lens.chartSwitch.betaLabel"
defaultMessage="Beta"
/>
</EuiBadge>
</EuiFlexItem>
) : null}
</EuiFlexGroup>
),
// Apparently checked: null is not valid for TS
Expand Down

0 comments on commit d699e9e

Please sign in to comment.