Skip to content

Commit

Permalink
fixes CR
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Mar 15, 2024
1 parent f8f9dec commit 2b24f54
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import './chart_switch.scss';
import React, { ReactNode } from 'react';
import { EuiFlexItem, EuiIconTip, EuiBetaBadge, EuiFlexGroup } from '@elastic/eui';
import { EuiFlexItem, EuiIconTip, EuiBetaBadge, EuiFlexGroup, EuiToolTip } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { css } from '@emotion/react';

Expand Down Expand Up @@ -55,16 +55,22 @@ const DataLossWarning = ({ content, id }: { content: ReactNode; id: string }) =>
export const ExperimentalBadge = () => {
return (
<EuiFlexItem grow={false}>
<EuiBetaBadge
css={css`
vertical-align: middle;
`}
iconType="beaker"
label={i18n.translate('xpack.lens.chartSwitch.experimentalLabel', {
<EuiToolTip
content={i18n.translate('xpack.lens.chartSwitch.experimentalLabel', {
defaultMessage: 'Technical preview',
})}
size="s"
/>
>
<EuiBetaBadge
css={css`
vertical-align: middle;
`}
iconType="beaker"
label={i18n.translate('xpack.lens.chartSwitch.experimentalLabel', {
defaultMessage: 'Technical preview',
})}
size="s"
/>
</EuiToolTip>
</EuiFlexItem>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
}
}

.lnsChartSwitch__append {
display: inline-flex;
}

.lnsChartSwitch__option {
.euiSelectableListItem__text {
flex-grow: 0;
}
.euiSelectableListItem__append {
margin-left: $euiSizeXS;
display: flex;
flex-grow: 1;
align-items: center;
justify-content: flex-end;
}
}

Expand Down

0 comments on commit 2b24f54

Please sign in to comment.