-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Site Editor: Fix error in compileStyleValue #43116
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix. I've suggested a shorter alternative for your consideration.
packages/edit-site/src/components/global-styles/use-global-styles-output.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Marin Atanasov <[email protected]>
Size Change: +801 B (0%) Total Size: 1.27 MB
ℹ️ View Unchanged
|
Thanks for the quick review, @tyxla. Shorter alternative works for me 👍 |
Hi, @oandregal. It might be a good idea to cherry-pick this for 13.9. |
* Site Editor: Fix error in compileStyleValue * Use shorter alternative Co-authored-by: Marin Atanasov <[email protected]>
Cherry-picked to the 13.9 branch and released in Gutenberg 13.9-rc2 ✅ |
Use style engine getCSSVarFromStyleValue Update style engine tests to cover bugfix in #43116 Moves style engine utils tests into correct directory
Use style engine getCSSVarFromStyleValue Update style engine tests to cover bugfix in #43116 Moves style engine utils tests into correct directory
#64490) Remove `compileStyleValue` in favour of pre-existing `getCSSValueFromRawStyle()` from the style engine package. Update style engine tests to cover bugfix in #43116 Moves style engine utils tests into correct directory Co-authored-by: ramonjd <[email protected]> Co-authored-by: aaronrobertshaw <[email protected]> Co-authored-by: kevin940726 <[email protected]>
…g (#64490) Remove `compileStyleValue` in favour of pre-existing `getCSSValueFromRawStyle()` from the style engine package. Update style engine tests to cover bugfix in WordPress/gutenberg#43116 Moves style engine utils tests into correct directory Co-authored-by: ramonjd <[email protected]> Co-authored-by: aaronrobertshaw <[email protected]> Co-authored-by: kevin940726 <[email protected]> Source: WordPress/gutenberg@add79ad
…g (#64490) Remove `compileStyleValue` in favour of pre-existing `getCSSValueFromRawStyle()` from the style engine package. Update style engine tests to cover bugfix in WordPress/gutenberg#43116 Moves style engine utils tests into correct directory Co-authored-by: ramonjd <[email protected]> Co-authored-by: aaronrobertshaw <[email protected]> Co-authored-by: kevin940726 <[email protected]> Source: WordPress/gutenberg@add79ad
…g (#64490) Remove `compileStyleValue` in favour of pre-existing `getCSSValueFromRawStyle()` from the style engine package. Update style engine tests to cover bugfix in WordPress/gutenberg#43116 Moves style engine utils tests into correct directory Co-authored-by: ramonjd <[email protected]> Co-authored-by: aaronrobertshaw <[email protected]> Co-authored-by: kevin940726 <[email protected]> Source: WordPress/gutenberg@add79ad
What?
Regression after #43019.
RR fixes
uncompiledValue.startsWith is not a function
error incompileStyleValue
.Why?
Based on theme config the
uncompiledValue
can be an integer, and this causes an error.How?
Updated condition to check the uncompiledValue type.
Testing Instructions
I noticed the error when visiting the site editor using Stewart theme.
Screenshots or screencast