diff --git a/src/components/date_picker/super_date_picker/quick_select_popover/__snapshots__/quick_select.test.js.snap b/src/components/date_picker/super_date_picker/quick_select_popover/__snapshots__/quick_select.test.js.snap index 5b41e109f0ba..5edeb5a2be3b 100644 --- a/src/components/date_picker/super_date_picker/quick_select_popover/__snapshots__/quick_select.test.js.snap +++ b/src/components/date_picker/super_date_picker/quick_select_popover/__snapshots__/quick_select.test.js.snap @@ -3,18 +3,8 @@ exports[`EuiQuickSelect is rendered 1`] = `
@@ -139,18 +129,8 @@ exports[`EuiQuickSelect is rendered 1`] = ` exports[`EuiQuickSelect prevQuickSelect 1`] = `
diff --git a/src/components/date_picker/super_date_picker/quick_select_popover/quick_select.js b/src/components/date_picker/super_date_picker/quick_select_popover/quick_select.js index 450cb062f5af..082760bd7bcd 100644 --- a/src/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +++ b/src/components/date_picker/super_date_picker/quick_select_popover/quick_select.js @@ -124,16 +124,13 @@ export class EuiQuickSelect extends Component { return (
- {([legendLabel, legendText]) => ( + token="euiQuickSelect.legendText" + default="Quick select a time range"> + {legendText => ( // Legend needs to be the first thing in a fieldset, but we want the visible title within the flex. // So we hide it, but allow screen readers to see it - + {legendText} @@ -149,7 +146,7 @@ export class EuiQuickSelect extends Component { token="euiQuickSelect.quickSelectTitle" default="Quick select"> {quickSelectTitle => ( -
+
{quickSelectTitle}
)}