Skip to content

Conversation

llastflowers
Copy link
Contributor

Closes https://github.com/github/primer/issues/5795

Current sx usage: 0

✅ Don't need to separately update github-ui components to use @primer/styled-react

Changelog

Removed

Remove support for sx from the LabelGroup component, and associated stories, docs, and tests

Rollout strategy

  • Major release; if selected, include a written rollout or migration plan

This component currently has 0 sx usage in dotcom, and therefore does not need the @primer/styled-react wrapper. this will be confirmed again before merging.

Merge checklist

@llastflowers llastflowers self-assigned this Aug 27, 2025
@llastflowers llastflowers added the integration-tests: skipped manually Changes in this PR do not require an integration test label Aug 27, 2025
Copy link

changeset-bot bot commented Aug 27, 2025

🦋 Changeset detected

Latest commit: da0bd77

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

This PR includes changesets to release 2 packages
Name Type
@primer/react Major
@primer/styled-react Major

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

Copy link
Contributor

github-actions bot commented Aug 27, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 89.88 KB (-0.02% 🔽)
packages/react/dist/browser.umd.js 89.97 KB (-0.1% 🔽)

@github-actions github-actions bot requested a deployment to storybook-preview-6682 August 27, 2025 19:31 Abandoned
@llastflowers llastflowers marked this pull request as ready for review August 28, 2025 18:40
@Copilot Copilot AI review requested due to automatic review settings August 28, 2025 18:40
@llastflowers llastflowers requested a review from a team as a code owner August 28, 2025 18:40
@llastflowers llastflowers requested a review from TylerJDev August 28, 2025 18:40
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the sx prop support from the LabelGroup component as part of the migration away from @primer/styled-react. Since there is no current usage of sx on LabelGroup components in dotcom, this breaking change can be safely implemented.

Key changes:

  • Removes sx prop from LabelGroup component interface and implementation
  • Replaces Box components with native div elements and inline styles in overlay
  • Updates styled component to remove sx styling function

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/react/src/LabelGroup/LabelGroup.tsx Removes sx prop support, eliminates Box imports, converts overlay layout to native divs with inline styles
.changeset/seven-coats-hang.md Documents breaking change for major version release

@llastflowers llastflowers added this pull request to the merge queue Sep 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 2, 2025
@llastflowers llastflowers added this pull request to the merge queue Sep 2, 2025
Merged via the queue into main with commit 5bbaae7 Sep 2, 2025
43 checks passed
@llastflowers llastflowers deleted the llastflowers/5795/no-sx-LabelGroup branch September 2, 2025 17:06
@primer primer bot mentioned this pull request Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-tests: skipped manually Changes in this PR do not require an integration test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants