-
Notifications
You must be signed in to change notification settings - Fork 630
Remove support for sx
from LabelGroup
component
#6682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: da0bd77 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 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 |
size-limit report 📦
|
There was a problem hiding this 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 fromLabelGroup
component interface and implementation - Replaces
Box
components with nativediv
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 |
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 theLabelGroup
component, and associated stories, docs, and testsRollout strategy
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