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
CYS - Core: fix font load when user opts out of tracking #45185
CYS - Core: fix font load when user opts out of tracking #45185
Conversation
…-cys-core-font-preview-and-site-preview-fail-to-load-fonts-when-user-opts-out-of-tracking
Hi @albarin, @nefeline, @woocommerce/woo-fse Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
…ad-fonts-when-user-opts-out-of-tracking' of github.com:woocommerce/woocommerce into 45138-cys-core-font-preview-and-site-preview-fail-to-load-fonts-when-user-opts-out-of-tracking
@@ -558,14 +523,14 @@ export const FONT_PAIRINGS_WHEN_USER_DID_NOT_ALLOW_TRACKING = [ | |||
elements: { | |||
heading: { | |||
typography: { | |||
fontFamily: 'var(--wp--preset--font-family--inter)', | |||
fontFamily: 'var(--wp--preset--font-family--body)', |
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.
We have to use the variable defined by the theme: https://github.com/WordPress/twentytwentyfour/blob/trunk/theme.json#L215
fontStyle: 'normal', | ||
fontWeight: '300', | ||
}, | ||
}, | ||
}, | ||
typography: { | ||
fontFamily: 'var(--wp--preset--font-family--cardo)', | ||
fontFamily: 'var(--wp--preset--font-family--heading)', |
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.
Test Results SummaryCommit SHA: 8b21b9f
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
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.
👌
* CYS - Core: fix font load when user opts out of tracking * remove comment * Add changefile(s) from automation for the following project(s): woocommerce * fix array to pass to FontFamiliesLoader * fix crash * fix font pair selected after the setup --------- Co-authored-by: github-actions <github-actions@github.com>
Submission Review Guidelines:
As a spec, we had to add the "Instrument Sans + Jost" font pair. The issue is that these fonts are loaded in a different variation of the TT4. Currently, we are using the default one. With the default variation, only Inter and Cargo fonts are loaded..
Adding the "Instrument Sans + Jost" font pair could be complex. Should we work on it?
cc @verofasulo @nefeline @albarin
EDIT: @verofasulo confirmed that we can avoid to work to implement the "Instrument Sans + Jost" font pair. p1709138640335519/1709039848.913899-slack-C053716F2H2
Changes proposed in this Pull Request:
Closes #45138.
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
customize-store
/wp-admin/admin.php?page=wc-settings&tab=advanced§ion=woocommerce_com
and ensure that theAllow usage of WooCommerce to be tracked
isn't enabled./wp-admin/admin.php?page=wc-admin&path=/customize-store
.Choose your Fonts
.Cardo/System sans-serif
andInter/Cardo
are visible./wp-admin/admin.php?page=wc-settings&tab=advanced§ion=woocommerce_com
and enable the tracking./wp-admin/admin.php?page=wc-admin&path=/customize-store
.Choose your Fonts
.Changelog entry
Significance
Type
Message
CYS - Core: fix font load when user opts out of tracking.
Comment