-
Notifications
You must be signed in to change notification settings - Fork 646
chore(ActionList): Remove the CSS modules feature flag from the ActionList/List component #6019
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: fc1926e 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/376771 |
|
🟢 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 CSS modules feature flag from the ActionList/List component and simplifies its rendering by consolidating styled variants into a single BoxWithFallback wrapper.
- Eliminated
styled-componentsand manualsxmerging in favor ofBoxWithFallback. - Removed feature-flag logic around CSS modules and cleaned up related imports.
- Updated tests to drop feature-flag scenarios and added a changeset entry.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/react/src/ActionList/List.tsx | Replaced conditional styled/ul branches with BoxWithFallback and removed feature-flag code |
| packages/react/src/ActionList/ActionList.test.tsx | Deleted tests specific to the removed CSS modules feature flag |
| .changeset/shaggy-states-travel.md | Added a changeset to document the removal of the feature flag |
Comments suppressed due to low confidence (1)
packages/react/src/ActionList/List.tsx:60
- Add tests for the new
BoxWithFallbackimplementation to verify that default styling resets are applied and that the component correctly handlesrefforwarding.
<BoxWithFallback
| )} | ||
| <BoxWithFallback | ||
| as="ul" | ||
| sx={sxProp} |
Copilot
AI
May 7, 2025
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.
Default list styles (margin reset, paddingInlineStart reset, and paddingY for the inset variant) were removed when replacing ListBox. Consider merging the original styles object with sxProp (e.g., sx={merge(styles, sxProp)}) to maintain the intended resets.
| sx={sxProp} | |
| sx={merge( | |
| { | |
| margin: 0, | |
| paddingInlineStart: 0, | |
| ...(variant === 'inset' && {paddingY: 2}), | |
| }, | |
| sxProp, | |
| )} |
| {childrenWithoutSlots} | ||
| </ListBox> | ||
| )} | ||
| <BoxWithFallback |
Copilot
AI
May 7, 2025
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 forwarded ref (forwardedRef or listRef) is no longer passed to BoxWithFallback, which may break focus management and other ref-dependent logic. Pass ref={listRef} (or forwardedRef) to ensure ref forwarding works correctly.
Co-authored-by: Marie Lucca <40550942+francinelucca@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Marie Lucca <40550942+francinelucca@users.noreply.github.com>
…nList.Divider component (#6022) Co-authored-by: primer[bot] <119360173+primer[bot]@users.noreply.github.com>
…nList.TrailingAction component (#6021) Co-authored-by: primer[bot] <119360173+primer[bot]@users.noreply.github.com>
Co-authored-by: Marie Lucca <40550942+francinelucca@users.noreply.github.com>
…onent (#6014) Co-authored-by: primer[bot] <119360173+primer[bot]@users.noreply.github.com> Co-authored-by: Josh Black <joshblack@github.com> Co-authored-by: Jamie Shark <5520141+jamieshark@users.noreply.github.com> Co-authored-by: Marie Lucca <40550942+francinelucca@users.noreply.github.com>
|
👋 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/List component (#6019) Co-authored-by: Marie Lucca <40550942+francinelucca@users.noreply.github.com> Co-authored-by: primer[bot] <119360173+primer[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Josh Black <joshblack@github.com> Co-authored-by: Jamie Shark <5520141+jamieshark@users.noreply.github.com>
Part of https://github.com/github/primer/issues/3961
I'm going to attempt to break
ActionListup into smaller chunks because of the complexity of the component.Changelog
New
Changed
Removed
Remove the CSS modules feature flag from the ActionList/List component
Rollout strategy
Testing & Reviewing
Merge checklist