Repository navigation
Kit: add a padded option to Group - #220
Open
agorischek wants to merge 1 commit into
Open
agorischek wants to merge 1 commit into
agorischek wants to merge 1 commit into
Conversation
A padded group insets its body by the header band's own inset, so prose, chips or a short list line up with the title. The default stays unpadded so tables keep running edge to edge. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the optional Group body-padding change.
No open issues 🎉
What changed in this PR
Adds opt-in body padding to the renderer kit’s Group component, while preserving the default edge-to-edge layout for tables.
Changes:
- Adds a
paddedprop that wraps group content in an inset body. - Shares the existing card-grid padding rule with padded group bodies.
- Documents the option and adds assertions for padded/default markup and CSS spacing.
| File | Description |
|---|---|
packages/renderers/kit/test/group.test.mjs |
Tests padded and default markup, plus shared spacing rules. |
packages/renderers/kit/styles/layout.css |
Applies the existing card-grid inset to padded bodies. |
packages/renderers/kit/src/react/layout-components.tsx |
Adds the optional padded prop and conditional body wrapper. |
docs/reference/renderer-kit.md |
Updates the generated API reference for padded. |
docs/guides/renderer-kit-components.md |
Explains when to use padded groups. |
Review effort: Balanced
This branch has not been 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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
17c567cc0cb3f238f8cd431e2c96f4e6d5412f52↑ Kit tests, lint and
tools check --fastpass.↓ No browser screenshot of a padded group; no built-in uses it yet.
Superego feedback item 20:
Groupgets apaddedprop.paddedwraps the body inpk-group-body, inset by--projections-space-3, the header band's own horizontal inset, so prose, chips or a short list line up with the title.