-
Notifications
You must be signed in to change notification settings - Fork 645
Remove support for sx from CounterLabel component
#6679
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: 984fbd5 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 |
|
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
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 deprecated sx prop support from the CounterLabel component as part of the migration away from styled-components to a more modern CSS-in-JS approach. The changes align with the broader effort to eliminate sx prop usage across Primer React components.
- Removes
sxprop fromCounterLabelcomponent interface and implementation - Replaces
BoxWithFallbackwrapper with nativespanelement - Updates component documentation to reflect API changes
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/react/src/CounterLabel/CounterLabel.tsx | Removes SxProp type, BoxWithFallback wrapper, and simplifies to native span element |
| packages/react/src/CounterLabel/CounterLabel.docs.json | Removes deprecated sx prop from component documentation |
| .changeset/sharp-papayas-destroy.md | Adds changeset entry documenting the breaking change for major release |
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.
Looks good!
Approving, merge whenever the supporting PR is ready!
|
👋 Hi from github/github-ui! Your integration PR is ready: https://github.com/github/github-ui/pull/2766 |
|
🟢 ci completed with status |
|
👋 Hi, there are new commits since the last successful integration test. We recommend running the integration workflow once more, unless you are sure the new changes do not affect github/github. Thanks! |
|
👋 Hi, there are new commits since the last successful integration test. We recommend running the integration workflow once more, unless you are sure the new changes do not affect github/github. Thanks! |
Closes https://github.com/github/primer/issues/5783
Current
sxusage: 5❌ Still need to separately update github-ui components to use @primer/styled-react
github/github-ui PR: https://github.com/github/github-ui/pull/1870
Changelog
Removed
Remove support for
sxfrom theCounterLabelcomponent, and associated stories, docs, and testsRollout strategy
We are using the
@primer/styled-reactcomponent to mitigate removingsxusage. We will make sure usage is updated upstream before merging.Merge checklist