Update end of guide "Continue button" in modal view to be visible (#159198)

Related to https://github.com/elastic/kibana/issues/155728

This PR updates the guide panel so that the "Continue to Elastic" button
is visible as described in related issue.

### Screenshots
<img width="1149" alt="Screenshot 2023-06-07 at 12 42 17"
src="eb7dbdba-00e3-4ef1-9033-b09c1fb8bb44">


### Mobile
<img width="381" alt="Screenshot 2023-06-07 at 12 44 28"
src="3b883dc9-a0ce-4fc9-95d2-f359d7fdf718">
This commit is contained in:
claracruz 2023-06-07 14:33:26 +01:00 committed by GitHub
parent 3073ad2787
commit 3aa1b34394
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 16 deletions

View file

@ -9,7 +9,7 @@
import {
euiCanAnimate,
euiFlyoutSlideInRight,
euiYScrollWithShadows,
euiYScroll,
logicalCSS,
logicalCSSWithFallback,
} from '@elastic/eui';
@ -47,6 +47,9 @@ export const getGuidePanelStyles = ({
animation: ${euiFlyoutSlideInRight} ${euiTheme.animation.normal}
${euiTheme.animation.resistance};
}
@media (max-width: ${euiTheme.breakpoint.m}px) {
max-height: 85vh;
})
@media (min-width: ${euiTheme.breakpoint.m}px) {
right: calc(${euiTheme.size.s} + 128px); // Accounting for margin on button
})
@ -95,9 +98,7 @@ export const getGuidePanelStyles = ({
flex-grow: 1;
`,
flyoutBody: css`
${euiYScrollWithShadows(euiThemeContext, {
side: 'end',
})}
${euiYScroll(euiThemeContext)}
padding: 16px 10px 0 16px;
`,
flyoutBodyError: css`

View file

@ -58,7 +58,7 @@ export const GuidePanelFlyoutBody = ({
return (
<>
<EuiSpacer size="l" />
<EuiSpacer size="m" />
<EuiText size="m">
<EuiLink external target="_blank" href={guideConfig.docs.url}>
{guideConfig.docs.text}
@ -109,7 +109,7 @@ export const GuidePanelFlyoutBody = ({
return (
<>
<EuiImage
size="fullWidth"
size="l"
src={isDarkTheme ? wellDoneAnimatedDarkGif : wellDoneAnimatedGif}
alt={i18n.translate('guidedOnboarding.dropdownPanel.wellDoneAnimatedGif', {
defaultMessage: `Guide completed animated gif`,
@ -131,17 +131,9 @@ export const GuidePanelFlyoutBody = ({
{docsLink()}
<GuideProgress
guideConfig={guideConfig}
styles={styles}
pluginState={pluginState}
isLoading={isLoading}
handleStepButtonClick={handleStepButtonClick}
isGuideReadyToComplete={isGuideReadyToComplete}
stepsCompleted={stepsCompleted}
/>
<EuiSpacer />
<EuiFlexGroup justifyContent="flexEnd">
<EuiFlexGroup justifyContent="flexStart">
<EuiFlexItem grow={false}>
<EuiButton
isLoading={isLoading}