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

fix(BaseStyles): remove unknown props from fallback when feature flag is enabled #5606

Merged
merged 15 commits into from
Jan 28, 2025

Conversation

joshblack
Copy link
Member

Update how we pass along system props in BaseStyles when the CSS Modules flag is enabled. Currently, when the flag is enabled we are still passing along color, fontFamily, and lineHeight to the underlying element. This change updates the component to use CSS Custom Properties as a bridge between what is provided as props and what is applied to the element in CSS.

Changelog

New

Changed

  • Update BaseStyles to set common styles using CSS Custom Properties instead of as attributes on the element
  • Update FeatureFlags to merge scope with parent context value

Removed

Rollout strategy

  • Patch release

@joshblack joshblack requested a review from a team as a code owner January 27, 2025 19:42
@joshblack joshblack requested a review from TylerJDev January 27, 2025 19:42
Copy link

changeset-bot bot commented Jan 27, 2025

🦋 Changeset detected

Latest commit: d9be714

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 Patch

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 Jan 27, 2025
@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 Jan 27, 2025
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!

Copy link
Contributor

github-actions bot commented Jan 27, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 104.39 KB (-0.06% 🔽)
packages/react/dist/browser.umd.js 104.91 KB (+0.08% 🔺)

@github-actions github-actions bot temporarily deployed to storybook-preview-5606 January 27, 2025 19:46 Inactive
@primer primer bot requested a review from a team as a code owner January 27, 2025 20:21
@primer primer bot requested a review from emilybrick January 27, 2025 20:21
@primer primer bot temporarily deployed to github-pages January 27, 2025 20:23 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-5606 January 27, 2025 20:23 Inactive
Copy link
Member

@francinelucca francinelucca left a comment

Choose a reason for hiding this comment

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

Noted the weight of the item titles changed in the VRT updates, intended?

@github-actions github-actions bot temporarily deployed to storybook-preview-5606 January 27, 2025 23:55 Inactive
@github-actions github-actions bot requested a deployment to storybook-preview-5606 January 28, 2025 17:51 Abandoned
@github-actions github-actions bot temporarily deployed to storybook-preview-5606 January 28, 2025 18:00 Inactive
@joshblack
Copy link
Member Author

@francinelucca thanks for calling that out! Went to double-check and it seems like yes 👍 The current snapshots do not seem to be using the modern action list and it's probably because of the same bug with feature flags that I ran into 🤔

@primer-integration
Copy link

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

@joshblack joshblack added this pull request to the merge queue Jan 28, 2025
Merged via the queue into main with commit f291e81 Jan 28, 2025
44 checks passed
@joshblack joshblack deleted the fix/update-base-styles-behind-ff branch January 28, 2025 19:36
@primer primer bot mentioned this pull request Jan 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 staff Author is a staff member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants