Repository navigation
docs(cli): use the standard Section wrapper in Bottom Sheet examples - #5238
Merged
imdreamrunner merged 1 commit intoAug 20, 2026
Merged
imdreamrunner merged 1 commit into
imdreamrunner merged 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
github-actions
Bot
requested review from
cvkxx,
ernestt,
kentonquatman and
rubyycheung
August 19, 2026 23:54
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR Modified ComponentsBottomSheet (@astryxdesign/core) · View in Storybook
Dialog (@astryxdesign/core) · View in Storybook
Layer (@astryxdesign/core) · View in Storybook
Layout (@astryxdesign/core) · View in Storybook
Lightbox (@astryxdesign/core) · View in Storybook
MobileNav (@astryxdesign/core) · View in Storybook
Popover (@astryxdesign/core) · View in Storybook
Section (@astryxdesign/core) · View in Storybook
Drawer (@astryxdesign/lab) · View in Storybook
Bundle Size Summary
Accessibility AuditStatus: 2 accessibility violation(s) found — 1 serious, 1 moderate. Layout - 2 issue(s)
Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
Four Bottom Sheet examples padded the sheet body by hand rather than
using a Section: BottomSheetHeights, BottomSheetMobileKeyboard and
BottomSheetNoScrim with an inline style={{padding: 'var(--spacing-4)'}},
and BottomSheetSnapPoints with <VStack padding={4}>.
That was a workaround for #5208 — a Section inside a sheet escaped
padding that was not visually there and hung off both edges. The
workaround is recorded in the issue, and BottomSheetNoScrim shows why
it was needed: its own page wrapper is a <Section padding={4}>, which
is exactly the value that leaked in.
With the boundary fixed, these can use the same
<Section padding={4}><VStack gap={4}> wrapper that BottomSheetShowcase
and BottomSheetSwitcherShowcase already use, so every Bottom Sheet
example reads the same way and none reaches for an inline style.
Rendering is unchanged: the three converted examples are pixel-identical
before and after (0 differing pixels at 2x). Divider's edge-to-edge
behavior is opt-in via isFullBleed, so moving into a Section does not
silently change the separators.
imdreamrunner
force-pushed
the
fix/bottom-sheet-example-section
branch
from
August 20, 2026 00:26
30edc33 to
d9c5604
Compare
imdreamrunner
changed the base branch from
main
to
fix/overlay-padding-var-isolation
August 20, 2026 01:00
imdreamrunner
merged commit Aug 20, 2026
dce98d8
into
fix/overlay-padding-var-isolation
19 checks passed
8 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes the #5208 workaround from the Bottom Sheet examples. Stacked on #5231 (which is stacked on #5209) — only the last commit belongs to this PR, and the diff cleans up as those merge.
What the examples were doing
Four of the six Bottom Sheet examples padded the sheet body by hand instead of using a
Section, in two flavors:The other two —
BottomSheetShowcaseand all three sheets inBottomSheetSwitcherShowcase— already use the house pattern:The split wasn't taste. A
Sectioninside a sheet used to escape padding that wasn't visually there and hang off both edges (#5208), so these four reached for something without escape behavior.BottomSheetNoScrimshows the mechanism plainly: its own page wrapper is a<Section padding={4}>, which is exactly the value that leaked into the sheet.With the boundary fixed, all four use the standard wrapper. Every Bottom Sheet example now reads the same way, and none reaches for an inline style with a raw token string.
Rendering is unchanged
Rendered the real example components in Chromium at 2x, opened each sheet, and diffed before/after:
Sheet body is 420px inside a 420px sheet in all three (no overflow), with 16px padding as before.
One thing I checked rather than assumed:
Divider's edge-to-edge behavior is opt-in viaisFullBleed(defaultfalse), so moving aDividerinside aSectiondoes not silently turn the separators into full-bleed rules. That's why the diffs are exactly zero rather than merely close.componentsUsedupdated in the three affected.doc.mjsfiles.pnpm lintclean,packages/clisuite 198 files / 2,724 tests green,pnpm buildproduces no drift.