Skip to content

Conversation

@jamieshark
Copy link
Contributor

@jamieshark jamieshark commented Mar 21, 2025

This PR removes the CSS modules feature flag from the FormControl component. The component FormControl is used 509 times in dotcom.

Changelog

New

Changed

Removed

Removes the CSS modules feature flag from the FormControl 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

@changeset-bot
Copy link

changeset-bot bot commented Mar 21, 2025

🦋 Changeset detected

Latest commit: 4ce62ac

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

@jamieshark jamieshark self-assigned this Mar 21, 2025
@github-actions
Copy link
Contributor

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

@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 Mar 21, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Mar 21, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 105.13 KB (-0.48% 🔽)
packages/react/dist/browser.umd.js 105.44 KB (-0.59% 🔽)

@jamieshark jamieshark marked this pull request as ready for review March 21, 2025 18:51
@jamieshark jamieshark requested a review from a team as a code owner March 21, 2025 18:51
@jamieshark jamieshark requested a review from hectahertz March 21, 2025 18:51
@github-actions github-actions bot temporarily deployed to storybook-preview-5807 March 21, 2025 18:58 Inactive
Copy link
Contributor

@hussam-i-am hussam-i-am left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe there are some additional subcomponents that is also using the FormControl feature flag that can be updated. Pretty much any file currently importing packages/react/src/FormControl/feature-flags.ts, which can also be deleted

Copy link
Contributor

@hussam-i-am hussam-i-am left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome cleanup, love toggleSxComponent, maybe we can start moving the other components that already have the flag removed to using it as well.

@jonrohan jonrohan disabled auto-merge March 28, 2025 01:39
@jonrohan jonrohan enabled auto-merge March 28, 2025 01:39
@jonrohan jonrohan added this pull request to the merge queue Mar 28, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 28, 2025
@jonrohan jonrohan added this pull request to the merge queue Mar 28, 2025
Merged via the queue into main with commit 926f8f8 Mar 28, 2025
44 checks passed
@jonrohan jonrohan deleted the css_modules_remove_flag_formcontrol branch March 28, 2025 16:49
@primer primer bot mentioned this pull request Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants