Skip to content
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

refactor(Text): Text component to use CSS modules behind primer_react_css_modules_team feature flag #4874

Merged
merged 4 commits into from
Aug 30, 2024

Conversation

jonrohan
Copy link
Member

Part of https://github.com/github/primer/issues/3785

Changelog

Changed

Refactoring Text to use CSS modules behind the primer_react_css_modules_team feature flag.

Removed

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

This will be behind the primer_react_css_modules_team feature flag

Merge checklist

@jonrohan jonrohan requested a review from a team as a code owner August 22, 2024 20:22
Copy link

changeset-bot bot commented Aug 22, 2024

🦋 Changeset detected

Latest commit: 5628650

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 the staff Author is a staff member label Aug 22, 2024
Copy link
Contributor

github-actions bot commented Aug 22, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 96.39 KB (+0.07% 🔺)
packages/react/dist/browser.umd.js 96.73 KB (+0.09% 🔺)

@jonrohan jonrohan changed the title refactor(Text): To CSS modules behind primer_react_css_modules_team feature flag refactor(Text): Text component to use CSS modules behind primer_react_css_modules_team feature flag Aug 22, 2024
@@ -44,6 +44,25 @@ test.describe('Text', () => {
test('default @vrt', async ({page}) => {
await visit(page, {
id: story.id,
globals: {
featureFlags: {
primer_react_css_modules_team: true,
Copy link
Member

Choose a reason for hiding this comment

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

Quick question: Does this mean we only run these tests with the feature flag on? Or do we run it twice, once with and once without

Copy link
Member Author

Choose a reason for hiding this comment

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

Or do we run it twice, once with and once without

Running once with it off and once with it on and comparing them to the same screenshot.

Copy link
Member

Choose a reason for hiding this comment

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

Ooh that's smart!

@jonrohan jonrohan added this pull request to the merge queue Aug 30, 2024
Merged via the queue into main with commit 4c69b38 Aug 30, 2024
31 checks passed
@jonrohan jonrohan deleted the primer_css_modules_text branch August 30, 2024 02:00
@primer primer bot mentioned this pull request Aug 29, 2024
@primer primer bot mentioned this pull request Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staff Author is a staff member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants