Skip to content

Commit 2be5a0d

Browse files
authored
fix(guided-steps): Fix overflow for step (#68661)
this pr fixes a bug with GuidedSteps where the content of the step could overflow
1 parent 686980d commit 2be5a0d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

static/app/components/guidedSteps/guidedSteps.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,15 @@ function Step(props: StepProps) {
120120
return (
121121
<StepWrapper data-test-id={`guided-step-${stepNumber}`}>
122122
<StepNumber isActive={isActive}>{stepNumber}</StepNumber>
123-
<div>
123+
<StepDetails>
124124
<StepHeading isActive={isActive}>
125125
{props.title}
126126
{isCompleted && <StepDoneIcon isActive={isActive} size="sm" />}
127127
</StepHeading>
128128
{isActive && (
129129
<ChildrenWrapper isActive={isActive}>{props.children}</ChildrenWrapper>
130130
)}
131-
</div>
131+
</StepDetails>
132132
</StepWrapper>
133133
);
134134
}
@@ -251,6 +251,10 @@ const ChildrenWrapper = styled('div')<{isActive: boolean}>`
251251
}
252252
`;
253253

254+
const StepDetails = styled('div')`
255+
overflow: hidden;
256+
`;
257+
254258
GuidedSteps.Step = Step;
255259
GuidedSteps.BackButton = BackButton;
256260
GuidedSteps.NextButton = NextButton;

0 commit comments

Comments
 (0)