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

Add className back to TokenBase #5420

Merged
merged 3 commits into from
Dec 12, 2024
Merged

Conversation

TylerDixon
Copy link
Contributor

Prior to #5271, the className in TokenBase was part of the ...rest variables that were spread onto the token base. Now that the className is directly referenced as part of the feature-flagged token, we need to directly reference it for the non-feature flagged token.

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

Create a Token with a class name, that class should be on the resulting rendered token.

Merge checklist

Copy link

changeset-bot bot commented Dec 12, 2024

🦋 Changeset detected

Latest commit: d02eca8

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 integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Dec 12, 2024
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 Dec 12, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 103.47 KB (+0.02% 🔺)
packages/react/dist/browser.umd.js 103.69 KB (-0.19% 🔽)

@github-actions github-actions bot temporarily deployed to storybook-preview-5420 December 12, 2024 13:42 Inactive
@TylerDixon TylerDixon marked this pull request as ready for review December 12, 2024 13:49
@TylerDixon TylerDixon requested a review from a team as a code owner December 12, 2024 13:49
@TylerDixon TylerDixon requested a review from TylerJDev December 12, 2024 13:49
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.

Looks great! Thanks 🙏🏼

@TylerDixon TylerDixon added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit 7a2d486 Dec 12, 2024
42 checks passed
@TylerDixon TylerDixon deleted the tylerdixon-add-back-classname branch December 12, 2024 14:35
@primer primer bot mentioned this pull request Dec 11, 2024
francinelucca added a commit that referenced this pull request Dec 12, 2024
* Add className back to TokenBase

* Adding tests and fixing implementation

* Create dirty-wasps-behave.md

---------

Co-authored-by: Marie Lucca <40550942+francinelucca@users.noreply.github.com>
This was referenced Dec 12, 2024
francinelucca added a commit to francinelucca/react that referenced this pull request Dec 30, 2024
* Add className back to TokenBase

* Adding tests and fixing implementation

* Create dirty-wasps-behave.md

---------

Co-authored-by: Marie Lucca <40550942+francinelucca@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: 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.

2 participants