Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Fix z-index bug by adding a wrapper #82

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 28 additions & 26 deletions src/features/WelcomeModal/WelcomeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,33 @@ export const WelcomeModal: FC<WelcomeModalProps> = ({
skipOnboarding,
}) => {
return (
<Modal width={540} height={430} defaultOpen>
{({ Close }) => (
<ModalContentWrapper data-chromatic="ignore">
<TopContent>
<StorybookLogo />
<Title>Welcome to Storybook</Title>
<Description>
Storybook helps you develop UI components faster. Learn the basics in a
few simple steps.
</Description>
<Button style={{ marginTop: 4 }} onClick={onProceed}>
Start your 3 minute tour
</Button>
</TopContent>
<SkipButton onClick={skipOnboarding}>
Skip tour
<StyledIcon icon="arrowright" />
</SkipButton>
<Background>
<Circle1 />
<Circle2 />
<Circle3 />
</Background>
</ModalContentWrapper>
)}
</Modal>
<div style={{ zIndex: 10 }}>
yannbf marked this conversation as resolved.
Show resolved Hide resolved
<Modal width={540} height={430} defaultOpen>
{({ Close }) => (
<ModalContentWrapper data-chromatic="ignore">
<TopContent>
<StorybookLogo />
<Title>Welcome to Storybook</Title>
<Description>
Storybook helps you develop UI components faster. Learn the
basics in a few simple steps.
</Description>
<Button style={{ marginTop: 4 }} onClick={onProceed}>
Start your 3 minute tour
</Button>
</TopContent>
<SkipButton onClick={skipOnboarding}>
Skip tour
<StyledIcon icon="arrowright" />
</SkipButton>
<Background>
<Circle1 />
<Circle2 />
<Circle3 />
</Background>
</ModalContentWrapper>
)}
</Modal>
</div>
);
};
Loading