From 2160aa35ccabeffa19840021a7f22199ef5459ad Mon Sep 17 00:00:00 2001 From: Michael Marcialis Date: Wed, 26 Oct 2022 04:35:12 -0400 Subject: [PATCH] Design suggestions (#18) --- .../datasources/form_based/layer_settings.tsx | 62 +++++++++++-------- 1 file changed, 37 insertions(+), 25 deletions(-) diff --git a/x-pack/plugins/lens/public/datasources/form_based/layer_settings.tsx b/x-pack/plugins/lens/public/datasources/form_based/layer_settings.tsx index 81b4e4eb0955d..ec161ef996737 100644 --- a/x-pack/plugins/lens/public/datasources/form_based/layer_settings.tsx +++ b/x-pack/plugins/lens/public/datasources/form_based/layer_settings.tsx @@ -10,11 +10,13 @@ import { EuiRange, EuiFlexGroup, EuiFlexItem, - EuiBadge, + EuiBetaBadge, EuiText, EuiLink, + EuiSpacer, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; +import { css } from '@emotion/react'; import React from 'react'; import { FormattedMessage } from '@kbn/i18n-react'; import type { DatasourceLayerSettingsProps } from '../../types'; @@ -35,41 +37,51 @@ export function LayerSettingsPanel({ data-test-subj="lns-indexPattern-random-sampling-row" fullWidth helpText={ - - - - ), - }} - /> + <> + +

+ + + + ), + }} + /> +

+ } label={ <> {i18n.translate('xpack.lens.xyChart.randomSampling.label', { defaultMessage: 'Random sampling', })}{' '} - - {i18n.translate('xpack.lens.randomSampling.experimentalLabel', { + + size="s" + /> } > - + - + - +