diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/__snapshots__/guide_card_footer.test.tsx.snap b/packages/kbn-guided-onboarding/src/components/landing_page/__snapshots__/guide_card_footer.test.tsx.snap index 74be4594642a5..6f9f2dcc9e2e3 100644 --- a/packages/kbn-guided-onboarding/src/components/landing_page/__snapshots__/guide_card_footer.test.tsx.snap +++ b/packages/kbn-guided-onboarding/src/components/landing_page/__snapshots__/guide_card_footer.test.tsx.snap @@ -12,8 +12,32 @@ exports[`guide card footer snapshots should render the footer when the guide has -
+ + + View guide + + + + +`; + +exports[`guide card footer snapshots should render the footer when the guide has not started yet 1`] = ` + + View guide -
- -`; - -exports[`guide card footer snapshots should render the footer when the guide has not started yet 1`] = ` -
- - View guide - -
+ + `; exports[`guide card footer snapshots should render the footer when the guide is in progress 1`] = ` @@ -69,19 +77,23 @@ exports[`guide card footer snapshots should render the footer when the guide is -
- - Continue - -
+ + Continue + + + `; @@ -110,34 +122,42 @@ exports[`guide card footer snapshots should render the footer when the guide is -
- - Continue - -
+ + Continue + + + `; exports[`guide card footer snapshots should render the footer when the guided onboarding has not started yet 1`] = ` -
- - View guide - -
+ + View guide + + + `; diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/guide_card_footer.tsx b/packages/kbn-guided-onboarding/src/components/landing_page/guide_card_footer.tsx index b123e86688811..b109db15c0aba 100644 --- a/packages/kbn-guided-onboarding/src/components/landing_page/guide_card_footer.tsx +++ b/packages/kbn-guided-onboarding/src/components/landing_page/guide_card_footer.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { css } from '@emotion/react'; -import { EuiButton, EuiProgress, EuiSpacer } from '@elastic/eui'; +import { EuiButton, EuiProgress, EuiSpacer, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { GuideId, GuideState } from '../../types'; import { UseCase } from './use_case_card'; @@ -54,16 +54,18 @@ export interface GuideCardFooterProps { export const GuideCardFooter = ({ guides, useCase, activateGuide }: GuideCardFooterProps) => { const guideState = guides.find((guide) => guide.guideId === (useCase as GuideId)); const viewGuideButton = ( -
- activateGuide(useCase, guideState)} - > - {viewGuideLabel} - -
+ + + activateGuide(useCase, guideState)} + > + {viewGuideLabel} + + + ); // guide has not started yet if (!guideState || guideState.status === 'not_started') { @@ -108,16 +110,18 @@ export const GuideCardFooter = ({ guides, useCase, activateGuide }: GuideCardFoo }} /> -
- activateGuide(useCase, guideState)} - > - {continueGuideLabel} - -
+ + + activateGuide(useCase, guideState)} + > + {continueGuideLabel} + + + ); };