Repository navigation
docs(spec): admit BottomSheet as a container publisher - #6882
Conversation
architecture:container-padding lists BottomSheet's Content area as a container publisher with Dialog's projection: the padding prop, then the theme's padding on bottom-sheet, then --spacing-4. The draft BottomSheet contract records FR4, the precedence, and the breaking default.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report
|
The Content area's inset resolves from the padding prop, then the theme's bottom-sheet padding, then no inset, so an unthemed sheet is unchanged. The contract is additive; no migration.
There was a problem hiding this comment.
Thanks for spelling out the decision and the alternatives so clearly. The proposal is coherent as a specification: BottomSheet would publish like Dialog, with the panel keeping the boundary reset, Content applying and publishing the inset, prop before theme before no inset, and the released unpadded default preserved for unthemed sheets.
Approval needs a maintainer decision first. Current container-padding authority lists Card, Section, Dialog, and ScrollableArea as publishers and says the record does not authorize another padding-prop projection, while the BottomSheet record today makes no padding claim. A maintainer needs to update those governing container-padding claims on the main line to admit BottomSheet with this exact projection — including the precedence, the zero default, and theme padding moving from the panel to Content — or point to the governing record that already settles it. Once that direction is settled, the specification text itself needs no separate fix from this review; runtime geometry proof stays with the pending implementation.
[Automated review]
|
/approve-spec f1553b9 |
There was a problem hiding this comment.
Thanks for spelling out the decision and the alternatives so clearly. The proposal is coherent as a specification: BottomSheet would publish like Dialog, with the panel keeping the boundary reset, Content applying and publishing the inset, prop before theme before no inset, and the released unpadded default preserved for unthemed sheets.
Approval needs a maintainer decision first. Current container-padding authority lists Card, Section, Dialog, and ScrollableArea as publishers and says the record does not authorize another padding-prop projection, while the BottomSheet record today makes no padding claim. A maintainer needs to update those governing container-padding claims on the main line to admit BottomSheet with this exact projection — including the precedence, the zero default, and theme padding moving from the panel to Content — or point to the governing record that already settles it. Once that direction is settled, the specification text itself needs no separate fix from this review; runtime geometry proof stays with the pending implementation.
[Automated review]
Exact decision needed
Should BottomSheet join the shared container-padding system as a container publisher, the way Dialog does? If so, what is its public projection, and what is its default?
Today the Sheet panel is only an overlay boundary owner. It resets inherited page geometry and publishes none of its own. Its content box has no padding, there is no
paddingprop, and a theme'spaddingonbottom-sheetpads the panel instead of the content. As a result:Existing authority searched
architecture:container-padding(current) lists Card, Section, Dialog, and ScrollableArea as container publishers. It says a new public padding prop needs its own component or family API review; the record itself does not authorize one.component:BottomSheet(draft) records anatomy and FR1–FR3. It makes no padding claim.component:Dialog(current) makes no padding claim either. Dialog's padding projection exists only through container lowering.architecture:component-theming-surfacealready lists padding in its catalog of guaranteed properties. It decides nothing here.container-paddingpaths. None change BottomSheet padding. fix(Layout): scope a Layout's padding to its own regions #6810 changes how Layout region padding is scoped, which does not touch overlay publishers.<Section padding={4}>the standard wrapper in the examples.Decision
paddingprop (public spacing scale), then the theme'spaddingproperties onbottom-sheet. This is the same projection Dialog has.paddingonbottom-sheetnow insets the Content area instead of the Sheet panel.Rejected alternatives
--spacing-4(full Dialog parity). This would double-pad every released sheet whose content supplies its own inset, and that is the common pattern. It would need a breaking change and a codemod.Claim scope and non-goals
bottom-sheettarget's padding tokens.Evidence and implementation relationship
The implementation is #6883, based on
main. In real Chromium, every existing sheet story shows 0 differing pixels and identical computed padding and published variables. This record does not depend on that implementation.On
architecture:container-padding,approved_byandapproved_atare left as they are. The approving owner sets them at approval.Scope
Validation
pnpm check:knowledgegit diff --check