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 b432ba4f86269..5606e9e349d98 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',