Skip to content

Conversation

@siddharthkp
Copy link
Member

@siddharthkp siddharthkp commented Mar 8, 2022

#1868 breaks setColorMode by overriding colorMode immediately after it is set with setCodeMode. (my bad!)

The fix is straight forward, these are 2 unrelated effects and should be separate.

Before:

theme-before.mov

After:

theme-after.mov

@siddharthkp siddharthkp requested review from a team and rezrah March 8, 2022 15:43
@siddharthkp siddharthkp self-assigned this Mar 8, 2022
@changeset-bot
Copy link

changeset-bot bot commented Mar 8, 2022

🦋 Changeset detected

Latest commit: 5fe0df8

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
Copy link
Contributor

github-actions bot commented Mar 8, 2022

size-limit report 📦

Path Size
dist/browser.esm.js 64.32 KB (+0.01% 🔺)
dist/browser.umd.js 64.68 KB (+0.02% 🔺)

Copy link
Contributor

@rezrah rezrah left a comment

Choose a reason for hiding this comment

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

LGTM

@siddharthkp siddharthkp merged commit ceaaf17 into main Mar 8, 2022
@siddharthkp siddharthkp deleted the themeprovider-fix-set-color-mode branch March 8, 2022 16:14
@primer-css primer-css mentioned this pull request Mar 8, 2022
pksjce pushed a commit that referenced this pull request Mar 10, 2022
* Pull out resolvedColorMode to a different effect

* Create pretty-cougars-walk.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants