From 2d0d7dc383fc5c68f9879e1a7e2bb9dc350fc3d8 Mon Sep 17 00:00:00 2001 From: Caroline Horn <549577+cchaos@users.noreply.github.com> Date: Fri, 30 Oct 2020 12:21:23 -0400 Subject: [PATCH] Combine auto apply strings into one --- .../public/components/sidebar/controls.tsx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/plugins/vis_default_editor/public/components/sidebar/controls.tsx b/src/plugins/vis_default_editor/public/components/sidebar/controls.tsx index b432ba4f8626..5606e9e349d9 100644 --- a/src/plugins/vis_default_editor/public/components/sidebar/controls.tsx +++ b/src/plugins/vis_default_editor/public/components/sidebar/controls.tsx @@ -23,7 +23,6 @@ import { EuiFlexItem, EuiButton, EuiButtonEmpty, - EuiScreenReaderOnly, EuiToolTip, } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n/react'; @@ -143,15 +142,12 @@ function DefaultEditorControls({ onClick={() => toggleAutoApply(!autoApplyEnabled)} size="s" minWidth={80} + aria-label={autoApplyEnabled ? i18n.translate('visDefaultEditor.sidebar.autoApplyChangesLabelOn', { + defaultMessage: 'Auto apply is on', + }) : autoApplyEnabled ? i18n.translate('visDefaultEditor.sidebar.autoApplyChangesLabelOff', { + defaultMessage: 'Auto apply is off', + })} > - - - {i18n.translate('visDefaultEditor.sidebar.autoApplyChangesLabel', { - defaultMessage: 'Auto apply is', - })} - - - {autoApplyEnabled ? i18n.translate('visDefaultEditor.sidebar.autoApplyChangesOn', { defaultMessage: 'On',