-
Notifications
You must be signed in to change notification settings - Fork 622
chore(ActionList): Remove the CSS modules feature flag from the ActionList.Divider component #6022
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: db9e315 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 |
👋 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/376835 |
🟢 golden-jobs completed with status |
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 legacy CSS modules feature flag logic from the ActionList.Divider
component so that it always uses the CSS modules–based styling, and updates snapshots and the changeset accordingly.
- Always render the divider via
BoxWithFallback
with the CSS modules class - Remove feature flag imports and branches for CSS modules vs.
sx
styling - Update NavList snapshots to include the
"Divider"
class and bump the minor version
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
packages/react/src/NavList/snapshots/NavList.test.tsx.snap | Updated snapshots to reflect the added “Divider” class on <li> elements |
packages/react/src/ActionList/Divider.tsx | Removed feature-flag branches and now always renders divider via BoxWithFallback with CSS modules |
.changeset/curvy-lions-buy.md | Added a changeset for a minor version bump |
return ( | ||
<Box | ||
<BoxWithFallback |
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.
The sx
prop is destructured but never passed to BoxWithFallback
, so any custom styling via sx
will be ignored (and sx
will trigger an unused-variable warning). Please forward sx={sx}
to BoxWithFallback
or remove it from the component signature.
Copilot uses AI. Check for mistakes.
👋 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! |
…nList.Divider component (#6022) Co-authored-by: primer[bot] <119360173+primer[bot]@users.noreply.github.com>
…nList.Divider component (#6022) Co-authored-by: primer[bot] <119360173+primer[bot]@users.noreply.github.com>
…nList.Divider component (#6022) Co-authored-by: primer[bot] <119360173+primer[bot]@users.noreply.github.com>
Closes https://github.com/github/primer/issues/5169
Changelog
New
Changed
Removed
Remove the CSS modules feature flag from the ActionList.Divider component
Rollout strategy
Testing & Reviewing
Merge checklist