Skip to content

chore(ActionList): Remove the CSS modules feature flag from the ActionList.TrailingAction component #6021

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

Merged
merged 2 commits into from
May 9, 2025

Conversation

jonrohan
Copy link
Member

@jonrohan jonrohan commented May 7, 2025

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

Changelog

New

Changed

Removed

Remove the CSS modules feature flag from the ActionList.TrailingAction component

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 May 7, 2025

🦋 Changeset detected

Latest commit: 5d7ec8d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Minor

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 staff Author is a staff member integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm labels May 7, 2025
Copy link
Contributor

github-actions bot commented May 7, 2025

👋 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 May 7, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 98.43 KB (-0.11% 🔽)
packages/react/dist/browser.umd.js 98.8 KB (-0.04% 🔽)

@github-actions github-actions bot temporarily deployed to storybook-preview-6021 May 7, 2025 18:33 Inactive
@jonrohan jonrohan force-pushed the css_modules_remove_flag/actionlist_visuals branch from 560df25 to 6efc162 Compare May 7, 2025 19:00
@jonrohan jonrohan changed the base branch from css_modules_remove_flag/actionlist_visuals to main May 7, 2025 19:05
@jonrohan jonrohan force-pushed the css_modules_remove_flag/actionlist_trailingaction branch from 375ac44 to 96571bd Compare May 7, 2025 19:05
@primer-integration
Copy link

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

@primer-integration
Copy link

🟢 golden-jobs 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: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm labels May 7, 2025
@jonrohan jonrohan marked this pull request as ready for review May 7, 2025 19:41
@Copilot Copilot AI review requested due to automatic review settings May 7, 2025 19:41
@jonrohan jonrohan requested a review from a team as a code owner May 7, 2025 19:41
@jonrohan jonrohan requested a review from TylerJDev May 7, 2025 19:41
@jonrohan jonrohan enabled auto-merge May 7, 2025 19:41
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 the now-unnecessary CSS modules feature flag and its old Box-based fallback from the ActionList.TrailingAction component, consolidating on the CSS modules implementation.

  • Eliminated the useFeatureFlag guard and related fallback code.
  • Deleted Box-based rendering and feature flag imports.
  • Added a Changeset to bump to a minor release.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/react/src/ActionList/TrailingAction.tsx Removed feature-flag logic and Box-based fallback, kept CSS modules build only
.changeset/quiet-weeks-play.md Added a minor-version Changeset for removing the feature flag
Comments suppressed due to low confidence (1)

packages/react/src/ActionList/TrailingAction.tsx:56

  • Re-add TrailingAction.displayName = 'ActionList.TrailingAction' immediately after the component export for consistent naming in React DevTools and error messages.
) as PolymorphicForwardRefComponent<'button' | 'a', ActionListTrailingActionProps>

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

github-actions bot commented May 9, 2025

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

Merged via the queue into main with commit a37d544 May 9, 2025
33 of 34 checks passed
@jonrohan jonrohan deleted the css_modules_remove_flag/actionlist_trailingaction branch May 9, 2025 15:39
@primer primer bot mentioned this pull request May 9, 2025
jonrohan added a commit that referenced this pull request May 9, 2025
…nList.TrailingAction component (#6021)

Co-authored-by: primer[bot] <119360173+primer[bot]@users.noreply.github.com>
jonrohan added a commit that referenced this pull request May 9, 2025
…nList.TrailingAction component (#6021)

Co-authored-by: primer[bot] <119360173+primer[bot]@users.noreply.github.com>
hectahertz pushed a commit that referenced this pull request May 20, 2025
…nList.TrailingAction component (#6021)

Co-authored-by: primer[bot] <119360173+primer[bot]@users.noreply.github.com>
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 staff Author is a staff member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants