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 #5545

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

joshblack
Copy link
Member

@joshblack joshblack commented Jan 14, 2025

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

Removed

Rollout strategy

  • Patch release

Copy link

changeset-bot bot commented Jan 14, 2025

🦋 Changeset detected

Latest commit: b14cd94

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 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 Jan 14, 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!

@github-actions github-actions bot temporarily deployed to storybook-preview-5545 January 14, 2025 20:16 Inactive
Copy link
Contributor

github-actions bot commented Jan 14, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 104.29 KB (+0.11% 🔺)
packages/react/dist/browser.umd.js 104.62 KB (+0.1% 🔺)

@github-actions github-actions bot temporarily deployed to storybook-preview-5545 January 15, 2025 16:28 Inactive
@joshblack joshblack marked this pull request as ready for review January 15, 2025 16:29
@joshblack joshblack requested a review from a team as a code owner January 15, 2025 16:29
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.

2 participants