-
Notifications
You must be signed in to change notification settings - Fork 639
chore(DialogV1): remove sx from deprecated Dialog #6923
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: 848563c 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! |
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 deprecated DialogV1 component as part of the migration away from styled-components. The change is part of a broader effort to eliminate sx
prop usage across deprecated components.
- Removes
SxProp
andsx
prop support from DialogV1 component and its Header subcomponent - Replaces
BoxWithFallback
wrapper components with native HTML elements - Updates styled-react package to provide its own DialogV1 wrapper that maintains
sx
support for backward compatibility
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
packages/react/src/DialogV1/Dialog.tsx | Removes sx prop support and BoxWithFallback wrapper, adds as prop for component polymorphism |
packages/styled-react/src/components/DialogV1.tsx | New wrapper component that adds back sx prop support using Box component |
packages/styled-react/src/deprecated.tsx | Updates Dialog export to use local DialogV1 wrapper instead of direct import |
packages/styled-react/src/tests/primer-react-deprecated.browser.test.tsx | Updates tests to verify sx prop functionality with new wrapper |
.changeset/modern-chicken-happen.md | Documents breaking change for major version bump |
👋 Hi from github/github-ui! Your integration PR is ready: https://github.com/github/github-ui/pull/3554 |
🟢 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 #6776
Current
sx
usage: 0Changelog
Removed
Remove support for
sx
from theDialogV1
deprecated component, and associated stories, docs, and testsRollout strategy
Testing & Reviewing
Merge checklist