Repository navigation
docs(spec): BottomSheet defaults to Dialog's container inset - #6938
Conversation
The Content area's inset resolves from the padding prop, then the
theme's bottom-sheet padding, then --spacing-4, matching Dialog. This is
a breaking default for a minor release; padding={0} restores the
released unpadded Content area.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Thanks for staging this as its own decision. This change is spec-only and internally consistent, but it intentionally reverses the current architecture:container-padding claim that BottomSheet's Content area keeps its released default of no inset when neither the padding prop nor theme padding is set.
Approval therefore needs a maintainer to update that existing governing claim first — specifically, to settle that the default should become Dialog-matching --spacing-4 as a breaking default for the next minor release, with padding={0} restoring the released unpadded Content area. No other findings: the precedence order is preserved, the two records agree after the edit, and knowledge validation passes. The Section-escape and double-padding geometry will still need their evidence in the implementation change.
[Automated review]
PR Analysis Report
|
|
BottomSheet is used as the mobile version of Dialog, Popover, and DropdownMenu. A theme may also give Dialog more padding, but that spacing could feel too large in a BottomSheet. Should each presentation define its own padding instead of making BottomSheet match Dialog by default? |
|
@rubyycheung Yep the intention is of this spec change is to create some padding by default for BottomSheet to match dialog, but the value doesn't need to exactly match Dialog. At the moment the default padding is 0 (content responsible for their own padding). Do you have a good default value in mind? |
The default inset is --spacing-4 on all four logical edges (block and inline), matching Dialog.
|
Discussed offline, update the default padding to spacing-4 (16px in neutral). This can be removed or updater by setting padding to other value. |
|
/approve-spec d5578e5 |
Exact decision needed
#6882 makes BottomSheet's Content area a container publisher but keeps the released unpadded default. Should BottomSheet's default container inset match Dialog's,
--spacing-4, starting with the next minor release (0.7.0)?Existing authority searched
architecture:container-padding(current, revised in docs(spec): admit BottomSheet as a container publisher #6882): BottomSheet publishes from thepaddingprop, then the theme'sbottom-sheetpadding, then no inset.component:BottomSheet(draft) FR4: the same precedence, with the released default preserved.component:Dialog(current) and container lowering: Dialog's padding chain ends at--spacing-4.Decision
paddingprop, then the theme'spaddingproperties onbottom-sheet, then--spacing-4on every logical edge (block and inline). This matches Dialog.padding={0}.padding={0}restores the released unpadded Content area.Rejected alternatives
Claim scope and non-goals
Evidence and implementation relationship
The implementation is #6884, stacked on #6883. In real Chromium, the 10 existing Section-wrapped and migrated sheet stories show 0 differing pixels against
main. Anastryx upgradecodemod addspadding={0}where a sheet would otherwise change. This record does not depend on that implementation.Merge order: #6883, then this PR, then #6884.
Scope
Validation
pnpm check:knowledgegit diff --check