Skip to content

feat(Stack): support balanced wrapping - #8692

Merged
HiroAgustin merged 1 commit into
mainfrom
stack-wrap-balance
Nov 6, 2026
Merged

HiroAgustin merged 1 commit into
mainfrom
stack-wrap-balance

Conversation

Copilot AI commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No linked issue.

Adds CSS Flexbox balance as a supported value for Stack's wrap prop, including responsive values and Storybook controls.

Changelog

New

  • Stack: Add balance as a value for the wrap prop.

Changed

  • None.

Removed

  • None.

Rollout strategy

  • No changes needed in github/github-ui
  • Needs changes in github/github-ui
  • Ships with feature flag(s)
  • Not sure
  • None

Testing & Reviewing

  • npm test Stack — passed (43 passed, 1 todo).
  • npm run type-check — passed.
  • npm run lint:css — passed.
  • npm run format:diff — passed.
  • Note: Chromium 148 does not yet support flex-wrap: balance; CSS includes a wrap fallback.

@changeset-bot

changeset-bot Bot commented Nov 6, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9063ce2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Minor

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

@github-actions github-actions Bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

⚠️ Action required

👋 Hi, this pull request contains changes to the source code that github/github-ui depends on. If you are GitHub staff, test these changes with github/github-ui using the integration workflow. Check the integration testing docs for step-by-step instructions. Or, apply the integration-tests: skipped manually label to skip these checks.

@primer-integration

primer-integration Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Integration test results from github/github-ui PR:

Waiting  Changes   Waiting
Passed  CI   Passed
Running  VRT   Running
Waiting  Projects   Waiting

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the Stack balanced-wrapping addition.

No open issues 🎉

What changed in this PR

Adds balance to Primer React’s Stack wrap prop, including responsive values, with ordinary wrapping as a fallback for browsers that do not support balanced flex wrapping.

Changes:

  • Extends the wrap type and CSS rules across all supported breakpoints.
  • Updates Storybook controls, API metadata, and attribute tests for the new value.
  • Adds a minor-release changeset for @primer/react.
File Description
packages/​react/​src/​Stack/​Stack.tsx Adds balance to the supported wrap values.
packages/​react/​src/​Stack/​Stack.stories.tsx Exposes balance in base and responsive controls.
packages/​react/​src/​Stack/​Stack.module.css Adds balanced wrapping rules with wrap fallbacks.
packages/​react/​src/​Stack/​Stack.docs.json Documents the expanded wrap type.
packages/​react/​src/​Stack/​__tests__/​Stack.test.tsx Checks base and responsive balance attributes.
.changeset/​stack-balanced-wrap.md Records the new API option as a minor release.

Review effort: Balanced

Copilot AI commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

One or more custom setup steps configured for this repository failed during this Copilot code review run:

Setup Playwright

Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review.

Note

You can configure setup steps for Copilot code review separately from Copilot cloud agent with a copilot-code-review.yml file. Read the docs for details.

@HiroAgustin
HiroAgustin marked this pull request as ready for review November 6, 2026 15:36
@HiroAgustin
HiroAgustin requested a review from a team as a code owner November 6, 2026 15:36
@HiroAgustin
HiroAgustin requested a review from adierkens November 6, 2026 15:36
@HiroAgustin
HiroAgustin added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 918d7cf Nov 6, 2026
56 of 57 checks passed
@HiroAgustin
HiroAgustin deleted the stack-wrap-balance branch November 6, 2026 16:04
@primer primer Bot mentioned this pull request Nov 6, 2026

This branch was successfully deployed

1 active and 1 inactive deployments
storybook-preview-8692 — 9063ce2d Deployed Nov 6, 2026 by github-actions[bot]
github-pages — 9063ce2d Deployed Nov 6, 2026 by Copilot via deploy-preview #34113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants