[Brand Refactor] Fixes SectionIntro layout - #1360
Conversation
🦋 Changeset detectedLatest commit: ad8dccc The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
🟢 No design token changes found |
🟢 Bundle size report
|
🟢 Unit test coverage changes foundUnit test coverage has been updated through this PR. Changes: 0 new tests, 0 removed tests, 1 improved, 1 decreased
|
🟢 No visual differences foundOur visual comparison tests did not find any differences in the UI. |
There was a problem hiding this comment.
Pull request overview
This PR refines SectionIntroStacked layout behavior to address QA feedback around alignment and gridline divider presentation across responsive breakpoints.
Changes:
- Standardizes the
SectionIntroStackedgrid column layout and removes inter-column gap viacolumnGap="none". - Updates
SectionIntroStackedresponsive spacing rules, including new tablet-specific layout constraints and gridline adjustments. - Tweaks spacing in the FlexSuite AI overview recipe to better match the updated section intro layout.
Show a summary per file
| File | Description |
|---|---|
| packages/react/src/SectionIntroStacked/SectionIntroStacked.tsx | Simplifies/stabilizes the grid column layout and sets columnGap="none" for alignment consistency. |
| packages/react/src/SectionIntroStacked/SectionIntroStacked.module.css | Introduces new responsive spacing rules and adjusts gridline divider behavior across breakpoints. |
| packages/react/src/recipes/Flexsuite/Overview/FlexSuiteAIOverview.tsx | Adjusts section padding to maintain consistent vertical rhythm after layout updates. |
| .changeset/soft-clouds-shift.md | Publishes the spacing/layout adjustment as a patch changeset for @primer/react-brand. |
Copilot's findings
- Files reviewed: 4/21 changed files
- Comments generated: 2
| max-width: 618px; | ||
| margin-inline: auto; |
There was a problem hiding this comment.
@rezrah I ended up using a max-width instead of the inline paddings, following @jesussandreas's comment on the QA ticket.
@jesussandreas, can you please confirm that this is the correct max-width for tablet viewports?
There was a problem hiding this comment.
@danielguillan literally just seeing this. but it seems correct.
|
@copilot resolve the merge conflicts in this pull request |
Done — I merged |
|
another change here @danielguillan can you ensure the gap is set to 64px in mobile? please.
this gap should be 12px instead of 8px. total inner padding, should be 20px, currently is set to 32px~ |
There was a problem hiding this comment.
@danielguillan @jesussandreas the space under the section intro is now really large on older templates like flex suite.. checkout this snapshot diff out for an example 👇.
Personally feel the spacing is too much even on gridline, but it looks dramatically worse on older termplates. Could/should we constrain or reduce it?
|
|
||
| @media screen and (min-width: 48rem) and (max-width: 63.24rem) { | ||
| .SectionIntroStacked { | ||
| max-width: 618px; |
There was a problem hiding this comment.
Just curious whether we're accounting for some kind of inline borders here? Is that why it's not rounded up to 620px?
| } | ||
|
|
||
| @media screen and (max-width: 63.25rem) { | ||
| @media screen and (max-width: 63.24rem) { |
There was a problem hiding this comment.
@danielguillan what was the reason for this breakpoint change? Want to understand the reason so we can consider fixing the inconsistencies in other components. We same to have more components using max-width of 63.25rem instead of 63.24rem right now.
rezrah
left a comment
There was a problem hiding this comment.
Code looks good. Some minor feedback, but ✅ to unblock.
@jesussandreas can you please 👍 on your side too if you're ready for this to land.
|
@copilot resolve the merge conflicts in this pull request |
Done — I merged |





Summary
Resolves https://github.com/orgs/github/projects/23995/views/5?filterQuery=section&pane=issue&itemId=185437322
Resolves https://github.com/orgs/github/projects/23995/views/5?filterQuery=section&pane=issue&itemId=173809910
Resolves https://github.com/orgs/github/projects/23995/views/5?filterQuery=section&pane=issue&itemId=173785876
Addresses 3 different items of QA feedback from the board.
Towards https://github.com/github/brand-marketing-design/issues/2606
List of notable changes:
SectionIntroStackedlayout alignment across variants.What should reviewers focus on?
Steps to test:
SectionIntroStackedstories in the Storybook preview.Contributor checklist:
update snapshotslabel to the PR)Reviewer checklist:
Screenshots: