-
Notifications
You must be signed in to change notification settings - Fork 646
chore(Dialog): Remove the CSS modules feature flag from the Dialog component #5969
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: 9c1e28a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
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 CSS modules feature flag from the Dialog component by eliminating conditionals based on the feature flag and replacing styled component wrappers with BoxWithFallback components.
- Removed toggleStyledComponent wrappers and the useFeatureFlag hook from both Dialog and DialogV1 components.
- Updated tests and stories to remove the FeatureFlags wrapper.
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/react/src/DialogV1/Dialog.tsx | Removed feature flag logic and updated DialogHeader to use a simpler API. |
| packages/react/src/DialogV1/Dialog.test.tsx | Removed tests solely relying on feature flag enabled behavior. |
| packages/react/src/Dialog/Dialog.tsx | Replaced styled component wrappers with BoxWithFallback and removed feature flag checks. |
| packages/react/src/Dialog/Dialog.test.tsx | Removed feature flag test scenarios. |
| packages/react/src/Dialog/Dialog.dev.stories.tsx | Removed FeatureFlags wrappers from stories. |
| .changeset/open-bananas-smile.md | Changeset to document the minor release and removal of CSS modules feature flag. |
Files not reviewed (1)
- packages/react/src/DialogV1/Dialog.module.css: Language not supported
Comments suppressed due to low confidence (2)
packages/react/src/Dialog/Dialog.tsx:312
- The removal of toggleStyledComponent and corresponding changes now directly assign data-width and data-height attributes. Please verify that the CSS and component styling consistently consume these attributes across all usage scenarios.
const dimensionProps = enabled ? {'data-width': width, 'data-height': height} : {width, height}
packages/react/src/DialogV1/Dialog.tsx:21
- The DialogHeader component no longer accepts theme and backgroundColor props. Please ensure that consumers and documentation are updated to reflect this API change.
export type DialogHeaderProps = React.PropsWithChildren<HTMLAttributes<HTMLDivElement>> & SxProp
|
👋 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 📦
|
|
👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/374821 |
|
🟢 golden-jobs 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! |
francinelucca
left a comment
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.
❇️
Closes https://github.com/github/primer/issues/4309
Closes https://github.com/github/primer/issues/4408
Changelog
New
Changed
Removed
Remove the CSS modules feature flag from the Dialog component
Rollout strategy
Testing & Reviewing
Merge checklist