diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/empty_states/empty_state.tsx b/x-pack/plugins/enterprise_search/public/applications/app_search/components/empty_states/empty_state.tsx index 26ed01cc614dc..cdb61d565ef9f 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/empty_states/empty_state.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/empty_states/empty_state.tsx @@ -32,13 +32,14 @@ export const EmptyState: React.FC = () => { }; return ( - + - + diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/empty_states/empty_states.scss b/x-pack/plugins/enterprise_search/public/applications/app_search/components/empty_states/empty_states.scss index 9b785c9b96abe..32d1b198c5ced 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/empty_states/empty_states.scss +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/empty_states/empty_states.scss @@ -7,15 +7,13 @@ /** * Empty/Error UI states */ -.empty-state { - .euiPageContent { - min-height: 450px; - display: flex; - flex-direction: column; - justify-content: center; - } +.emptyState { + min-height: 450px; + display: flex; + flex-direction: column; + justify-content: center; - .euiEmptyPrompt > .euiIcon { + &__prompt > .euiIcon { margin-bottom: $euiSizeS; } } diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/empty_states/error_state.tsx b/x-pack/plugins/enterprise_search/public/applications/app_search/components/empty_states/error_state.tsx index 5891c89c3a022..15822c5953a91 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/empty_states/error_state.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/empty_states/error_state.tsx @@ -20,14 +20,15 @@ export const ErrorState: React.FC = () => { const { enterpriseSearchUrl } = useContext(KibanaContext) as IKibanaContext; return ( - + - + { return ( - + - + diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/empty_states/no_user_state.tsx b/x-pack/plugins/enterprise_search/public/applications/app_search/components/empty_states/no_user_state.tsx index bf728bd43ead0..8ee038f33971a 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/empty_states/no_user_state.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/empty_states/no_user_state.tsx @@ -19,14 +19,15 @@ export const NoUserState: React.FC = () => { const username = getUserName(); return ( - + - + diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview/engine_overview.scss b/x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview/engine_overview.scss index 1f4b711f56ef2..2c7f7de6458e2 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview/engine_overview.scss +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview/engine_overview.scss @@ -7,21 +7,21 @@ /** * Engine Overview */ -.engine-overview { +.engineOverview { width: 100%; - .euiPanel { - padding: $euiSizeXL; - } + &__body { + padding: $euiSize; - .euiPageContent .euiPageContentHeader { - margin-bottom: $euiSizeM; + @include euiBreakpoint('m', 'l', 'xl') { + padding: $euiSizeXL; + } } +} - .engine-icon { - display: inline-block; - width: $euiSize; - height: $euiSize; - margin-right: $euiSizeXS; - } +.engineIcon { + display: inline-block; + width: $euiSize; + height: $euiSize; + margin-right: $euiSizeXS; } diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview/engine_overview.tsx b/x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview/engine_overview.tsx index 479dfe8e61513..7f7c271d2e68b 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview/engine_overview.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview/engine_overview.tsx @@ -89,18 +89,18 @@ export const EngineOverview: React.FC = () => { if (!engines.length) return ; return ( - + - +

- + {

- + { return ( - + - + { rel="noopener noreferrer" > {i18n.translate('xpack.enterpriseSearch.setupGuide.videoAlt', { - + { it('renders AppSearch', () => { renderApp(AppSearch, core, params, config, plugins); - expect(params.element.querySelector('.setup-guide')).not.toBeNull(); + expect(params.element.querySelector('.setupGuide')).not.toBeNull(); }); });