diff --git a/public/pages/Aliases/components/IndexControls/IndexControls.tsx b/public/pages/Aliases/components/IndexControls/IndexControls.tsx index a4fdf908a..47b0f0d1f 100644 --- a/public/pages/Aliases/components/IndexControls/IndexControls.tsx +++ b/public/pages/Aliases/components/IndexControls/IndexControls.tsx @@ -4,7 +4,7 @@ */ import React, { useEffect, useState } from "react"; -import { EuiCompressedComboBox, EuiCompressedFieldSearch, EuiFlexGroup, EuiFlexItem } from "@elastic/eui"; +import { EuiCompressedComboBox, EuiCompressedFieldSearch, EuiFlexGroup, EuiFlexItem, EuiSpacer } from "@elastic/eui"; import { ALIAS_STATUS_OPTIONS, IndicesUpdateMode } from "../../../../utils/constants"; import { getUISettings } from "../../../../services/Services"; import AliasesActions from "../../containers/AliasActions"; @@ -42,35 +42,38 @@ export default function SearchControls(props: SearchControlsProps) { const useUpdatedUX = uiSettings.get("home:useNewHomePage"); return useUpdatedUX ? ( - - - onChange("search", e.target.value)} - /> - - - onChange("status", (val || []).map((item) => item).join(","))} - value={state.status ? state.status.split(",").map((label) => label) : []} - options={ALIAS_STATUS_OPTIONS} - useNewUX={useUpdatedUX} - /> - - - - - + <> + + + onChange("search", e.target.value)} + /> + + + onChange("status", (val || []).map((item) => item).join(","))} + value={state.status ? state.status.split(",").map((label) => label) : []} + options={ALIAS_STATUS_OPTIONS} + useNewUX={useUpdatedUX} + /> + + + + + + + ) : ( diff --git a/public/pages/ChangePolicy/components/ChangeManagedIndices/ChangeManagedIndices.tsx b/public/pages/ChangePolicy/components/ChangeManagedIndices/ChangeManagedIndices.tsx index 738c761d4..412691818 100644 --- a/public/pages/ChangePolicy/components/ChangeManagedIndices/ChangeManagedIndices.tsx +++ b/public/pages/ChangePolicy/components/ChangeManagedIndices/ChangeManagedIndices.tsx @@ -17,7 +17,6 @@ interface ChangeManagedIndicesProps { onChangeManagedIndices: (selectedManagedIndices: { label: string; value?: ManagedIndexItem }[]) => void; onChangeStateFilters: (stateFilter: { label: string }[]) => void; managedIndicesError: string; - useUpdatedUX?: boolean; } interface ChangeManagedIndicesState { @@ -72,7 +71,7 @@ export default class ChangeManagedIndices extends Component, selectedManagedIndex: { label: string; value?: ManagedIndexItem }) => { if (!selectedManagedIndex.value) return accu; @@ -109,7 +108,6 @@ export default class ChangeManagedIndices extends Component @@ -122,7 +120,6 @@ export default class ChangeManagedIndices extends Component diff --git a/public/pages/ChangePolicy/components/ChangeManagedIndices/__snapshots__/ChangeManagedIndices.test.tsx.snap b/public/pages/ChangePolicy/components/ChangeManagedIndices/__snapshots__/ChangeManagedIndices.test.tsx.snap index d14c359ac..306682fb1 100644 --- a/public/pages/ChangePolicy/components/ChangeManagedIndices/__snapshots__/ChangeManagedIndices.test.tsx.snap +++ b/public/pages/ChangePolicy/components/ChangeManagedIndices/__snapshots__/ChangeManagedIndices.test.tsx.snap @@ -59,17 +59,17 @@ exports[` spec renders the component 1`] = ` aria-describedby="some_html_id-help-0" aria-expanded="false" aria-haspopup="listbox" - class="euiComboBox" + class="euiComboBox euiComboBox--compressed" role="combobox" >
@@ -134,17 +134,17 @@ exports[` spec renders the component 1`] = ` aria-describedby="some_html_id-help-0" aria-expanded="false" aria-haspopup="listbox" - class="euiComboBox euiComboBox-isDisabled" + class="euiComboBox euiComboBox--compressed euiComboBox-isDisabled" role="combobox" >
diff --git a/public/pages/ChangePolicy/components/NewPolicy/NewPolicy.tsx b/public/pages/ChangePolicy/components/NewPolicy/NewPolicy.tsx index 74153cf35..14a1c883d 100644 --- a/public/pages/ChangePolicy/components/NewPolicy/NewPolicy.tsx +++ b/public/pages/ChangePolicy/components/NewPolicy/NewPolicy.tsx @@ -33,7 +33,6 @@ interface NewPolicyProps { onChangePolicy: (selectedPolicies: PolicyOption[]) => void; onChangeStateRadio: (optionId: string) => void; onStateSelectChange: (e: React.ChangeEvent) => void; - useUpdatedUX?: boolean; } interface NewPolicyState { @@ -123,7 +122,6 @@ export default class NewPolicy extends React.Component @@ -140,7 +138,6 @@ export default class NewPolicy extends React.Component
diff --git a/public/pages/ChangePolicy/components/NewPolicy/__snapshots__/NewPolicy.test.tsx.snap b/public/pages/ChangePolicy/components/NewPolicy/__snapshots__/NewPolicy.test.tsx.snap index 4c6f47674..e1b2edcbc 100644 --- a/public/pages/ChangePolicy/components/NewPolicy/__snapshots__/NewPolicy.test.tsx.snap +++ b/public/pages/ChangePolicy/components/NewPolicy/__snapshots__/NewPolicy.test.tsx.snap @@ -80,17 +80,17 @@ exports[` spec renders the component 1`] = `