Skip to content

Conversation

liuliu-dev
Copy link
Contributor

@liuliu-dev liuliu-dev commented Sep 2, 2025

Remove sx and BoxWithFallback from the Spinner component
Closes #5819

sx usage, tracking here: https://github.com/github/primer/issues/5827

Screenshot 2025-09-15 at 4 00 57 PM

Rollout strategy

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

Copy link

changeset-bot bot commented Sep 2, 2025

🦋 Changeset detected

Latest commit: 1cc55d6

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 Sep 2, 2025

👋 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!

@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 Sep 2, 2025
Copy link
Contributor

github-actions bot commented Sep 2, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 89.76 KB (+0.02% 🔺)
packages/react/dist/browser.umd.js 89.9 KB (+0.02% 🔺)

@github-actions github-actions bot temporarily deployed to storybook-preview-6708 September 15, 2025 22:47 Inactive
@github-actions github-actions bot added integration-tests: passing Changes in this PR do NOT cause breaking changes in gh/gh and removed integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm labels Sep 15, 2025
@liuliu-dev liuliu-dev marked this pull request as ready for review September 15, 2025 23:00
@liuliu-dev liuliu-dev requested a review from a team as a code owner September 15, 2025 23:00
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 deprecated sx prop and BoxWithFallback wrapper from the Spinner component as part of ongoing efforts to simplify the component API and reduce dependencies on the styled-system approach.

  • Removes sx prop and SxProp type from the main Spinner component
  • Eliminates BoxWithFallback wrapper and StyledSpinner function in favor of direct component usage
  • Maintains backward compatibility by adding a styled wrapper in the legacy styled-react package

Reviewed Changes

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

Show a summary per file
File Description
packages/react/src/Spinner/Spinner.tsx Removes sx prop support and BoxWithFallback wrapper, simplifies component implementation
packages/styled-react/src/index.tsx Adds backward-compatible Spinner wrapper with sx prop support for legacy usage
packages/react/src/Spinner/Spinner.docs.json Updates component documentation to remove sx prop reference
packages/react/src/Spinner/Spinner.dev.stories.tsx Updates dev story to use CSS class instead of sx prop
packages/react/src/Spinner/Spinner.dev.stories.module.css Adds CSS module for dev story styling
.changeset/beige-shrimps-sleep.md Documents breaking change for major version release

@github-actions github-actions bot added integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm and removed integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm labels Sep 22, 2025
Copy link
Contributor

👋 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!

@github-actions github-actions bot requested a deployment to storybook-preview-6708 September 22, 2025 20:56 Abandoned
@github-actions github-actions bot removed the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Sep 22, 2025
@github-actions github-actions bot temporarily deployed to storybook-preview-6708 September 22, 2025 21:04 Inactive
@github-actions github-actions bot added integration-tests: failing Changes in this PR cause breaking changes in gh/gh and removed integration-tests: passing Changes in this PR do NOT cause breaking changes in gh/gh labels Sep 22, 2025
@primer-integration
Copy link

👋 Hi from github/github-ui! Your integration PR is ready: https://github.com/github/github-ui/pull/3048

@primer-integration
Copy link

🟢 ci completed with status success.

@github-actions github-actions bot added integration-tests: passing Changes in this PR do NOT cause breaking changes in gh/gh and removed integration-tests: failing Changes in this PR cause breaking changes in gh/gh labels Sep 22, 2025
@liuliu-dev liuliu-dev added this pull request to the merge queue Sep 22, 2025
Merged via the queue into main with commit b7b8a36 Sep 22, 2025
43 checks passed
@liuliu-dev liuliu-dev deleted the liuliu/remove-sx-from-spinner branch September 22, 2025 23:52
@primer primer bot mentioned this pull request Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-tests: passing Changes in this PR do NOT cause breaking changes in gh/gh
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants