Skip to content

fix(ui): Remove overflow hidden from GuidedSteps StepDetails#112336

Merged
priscilawebdev merged 1 commit intomasterfrom
priscila/fix/guided-steps-overflow-hidden
Apr 7, 2026
Merged

fix(ui): Remove overflow hidden from GuidedSteps StepDetails#112336
priscilawebdev merged 1 commit intomasterfrom
priscila/fix/guided-steps-overflow-hidden

Conversation

@priscilawebdev
Copy link
Copy Markdown
Member

@priscilawebdev priscilawebdev commented Apr 7, 2026

Remove overflow: hidden from StepDetails in the GuidedSteps component.

Background

StepDetails is a grid item in a 34px 1fr layout. When content inside it (like a code block with long lines) had a large intrinsic width, it would push past its 1fr column and break the layout on small viewports. To prevent this, overflow: hidden was added — it worked, but it also clipped everything that extended beyond the container bounds, including focus rings on form elements (which use box-shadow in Sentry's design system):

image

What happened

On Mar 25, Evans noticed the clipping issue and removed overflow: hidden in #111462. But without it, content started overflowing on small screens again, so on Mar 27 it was reverted in 939e726.

Then on Mar 31, Lazar landed #111657 which added min-width: 0 to StepDetails to fix a code block overflow issue in the Metrics onboarding. Since the revert had already restored overflow: hidden, the overflow was no longer visible — but min-width: 0 was still the right addition, and it also happens to solve the clipping issue, since it lets the grid item respect its track width without needing to clip its contents.

This PR

Now that min-width: 0 handles the overflow problem, overflow: hidden is redundant and can be safely removed — finishing what Evans started in #111462.

closes https://linear.app/getsentry/issue/DE-1048/stepper-overflow-hidden-clips-focus-rings

The overflow: hidden on StepDetails was clipping focus rings (box-shadow
based) on form elements inside guided steps. Since min-width: 0 already
prevents grid blowout and child components handle their own horizontal
overflow via overflow-x: auto, this property is no longer needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 7, 2026
@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 7, 2026

@priscilawebdev priscilawebdev marked this pull request as ready for review April 7, 2026 09:20
@priscilawebdev priscilawebdev requested review from a team, evanpurkhiser and nikolovlazar April 7, 2026 09:21
@priscilawebdev priscilawebdev enabled auto-merge (squash) April 7, 2026 09:21
@priscilawebdev priscilawebdev merged commit 7a2c6f4 into master Apr 7, 2026
92 of 93 checks passed
@priscilawebdev priscilawebdev deleted the priscila/fix/guided-steps-overflow-hidden branch April 7, 2026 10:55
george-sentry pushed a commit that referenced this pull request Apr 9, 2026
Remove `overflow: hidden` from `StepDetails` in the `GuidedSteps`
component.

### Background

`StepDetails` is a grid item in a `34px 1fr` layout. When content inside
it (like a code block with long lines) had a large intrinsic width, it
would push past its `1fr` column and break the layout on small
viewports. To prevent this, `overflow: hidden` was added — it worked,
but it also clipped everything that extended beyond the container
bounds, including focus rings on form elements (which use `box-shadow`
in Sentry's design system):

<img width="427" height="241" alt="image"
src="https://github.com/user-attachments/assets/f693c434-1027-4237-b643-52d974f94897"
/>


### What happened

On **Mar 25**, Evans noticed the clipping issue and removed `overflow:
hidden` in #111462. But without it, content started overflowing on small
screens again, so on **Mar 27** it was reverted in 939e726.

Then on **Mar 31**, Lazar landed #111657 which added `min-width: 0` to
`StepDetails` to fix a code block overflow issue in the Metrics
onboarding. Since the revert had already restored `overflow: hidden`,
the overflow was no longer visible — but `min-width: 0` was still the
right addition, and it also happens to solve the clipping issue, since
it lets the grid item respect its track width without needing to clip
its contents.

### This PR

Now that `min-width: 0` handles the overflow problem, `overflow: hidden`
is redundant and can be safely removed — finishing what Evans started in
#111462.


closes
https://linear.app/getsentry/issue/DE-1048/stepper-overflow-hidden-clips-focus-rings

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants