diff --git a/src/plugins/discover/public/components/common/__snapshots__/loading_indicator.test.tsx.snap b/src/plugins/discover/public/components/common/__snapshots__/loading_indicator.test.tsx.snap index 9b8907dc9b4e3..cb9676b012225 100644 --- a/src/plugins/discover/public/components/common/__snapshots__/loading_indicator.test.tsx.snap +++ b/src/plugins/discover/public/components/common/__snapshots__/loading_indicator.test.tsx.snap @@ -2,15 +2,22 @@ exports[`Loading indicator default renders correctly 1`] = `
- + +
+
@@ -18,20 +25,27 @@ exports[`Loading indicator default renders correctly 1`] = ` exports[`Loading indicator elastic renders correctly 1`] = `
- - + aria-label="Loading" + class="euiLoadingElastic emotion-euiLoadingElastic" + role="progressbar" + > + + +
+
`; diff --git a/src/plugins/discover/public/components/common/loading_indicator.tsx b/src/plugins/discover/public/components/common/loading_indicator.tsx index f07b22198d4b0..ed6155c6916ab 100644 --- a/src/plugins/discover/public/components/common/loading_indicator.tsx +++ b/src/plugins/discover/public/components/common/loading_indicator.tsx @@ -7,7 +7,7 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -import { EuiFlexGroup, EuiFlexItem, EuiLoadingSpinner, EuiLoadingElastic } from '@elastic/eui'; +import { EuiEmptyPrompt, EuiLoadingSpinner, EuiLoadingElastic } from '@elastic/eui'; import React from 'react'; interface Props { @@ -16,10 +16,8 @@ interface Props { export const LoadingIndicator = ({ type = 'spinner' }: Props) => { return ( - - - {type === 'spinner' ? : } - - + : } + /> ); };