Skip to content

Conversation

TylerJDev
Copy link
Member

@TylerJDev TylerJDev commented Sep 12, 2025

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

Removes sx support in Breadcrumbs

Changelog

Removed

  • Removes sx in Breadrcrumbs

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

Copy link

changeset-bot bot commented Sep 12, 2025

🦋 Changeset detected

Latest commit: 0d08da1

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

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

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

Copy link
Contributor

github-actions bot commented Sep 12, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 89.52 KB (-0.01% 🔽)
packages/react/dist/browser.umd.js 89.63 KB (+0.02% 🔺)

@github-actions github-actions bot temporarily deployed to storybook-preview-6844 September 23, 2025 15:41 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-6844 September 23, 2025 15:51 Inactive
@TylerJDev TylerJDev marked this pull request as ready for review September 23, 2025 15:53
@TylerJDev TylerJDev requested a review from a team as a code owner September 23, 2025 15:53
@Copilot Copilot AI review requested due to automatic review settings September 23, 2025 15:53
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 sx prop support from the Breadcrumbs component as part of a broader effort to migrate away from styled-components and the sx styling system. The component now uses standard CSS properties via a style prop instead.

Key changes:

  • Removed sx prop support from both Breadcrumbs and Breadcrumbs.Item components
  • Replaced BoxWithFallback wrapper with native HTML elements (nav and a)
  • Updated TypeScript interfaces to use style prop instead of SxProp

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/react/src/Breadcrumbs/Breadcrumbs.tsx Main component refactor removing sx support and BoxWithFallback dependency
packages/styled-react/src/index.tsx Removed Breadcrumbs export from styled-react package
packages/styled-react/src/tests/primer-react.browser.test.tsx Removed sx prop tests for Breadcrumbs components
packages/styled-react/src/tests/snapshots/exports.test.ts.snap Updated export snapshot to exclude Breadcrumbs
.changeset/slimy-parrots-love.md Added changeset documenting the breaking change

@github-actions github-actions bot added the integration-tests: failing Changes in this PR cause breaking changes in gh/gh label Sep 25, 2025
@github-actions github-actions bot requested a deployment to storybook-preview-6844 September 30, 2025 04:01 Abandoned
@github-actions github-actions bot temporarily deployed to storybook-preview-6844 September 30, 2025 04:09 Inactive
@primer-integration
Copy link

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

@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 30, 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!

{...rest}
/>
)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@francinelucca francinelucca added this pull request to the merge queue Sep 30, 2025
Merged via the queue into main with commit 1f9f582 Sep 30, 2025
42 checks passed
@francinelucca francinelucca deleted the remove-sx-from-breadcrumbs branch September 30, 2025 14:55
@primer primer bot mentioned this pull request Sep 30, 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 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.

3 participants