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
EditingToolkit > GlobalStyles: Add new Google fonts #44750
Conversation
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
Caution: This PR affects files in the Editing Toolkit Plugin on WordPress.com D47730-code has been created so you can easily test it on your sandbox. See this FieldGuide page about developing the Editing Toolkit Plugin for more info: PCYsg-ly5-p2 |
73fbed1
to
0e24b37
Compare
0e24b37
to
ff6b676
Compare
apps/full-site-editing/full-site-editing-plugin/global-styles/class-global-styles.php
Outdated
Show resolved
Hide resolved
This tested well for me ... happy to give it a green tick tomorrow once you decide what to do with that font ... I would be inclined to remove it for now and merge others, unless you can track down an alternative one quickly. |
Thanks! I removed Libre Bodoni. I also corrected the name of "Josefin" to "Josefin Sans". |
e7019d1
to
493bac8
Compare
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.
I rebased the branch to fix the build issues with the associated diff, and was then able to to sandbox and the new fonts appeared and could be applied.
given that this doesn't get merged into the calypso app you can probably ignore the e2e test failures |
Completely unrelated to this PR but shouldn't these be wrapped in translation functions? wp-calypso/apps/full-site-editing/full-site-editing-plugin/global-styles/class-global-styles.php Lines 84 to 91 in 493bac8
wp-calypso/apps/full-site-editing/full-site-editing-plugin/global-styles/class-global-styles.php Line 191 in 493bac8
wp-calypso/apps/full-site-editing/full-site-editing-plugin/global-styles/class-global-styles.php Line 147 in 493bac8
|
@simison Thanks for pointing that out! They should be. Can we open a new issue to add translation functions? I don't want to hold up the font updates. |
This is working for me too. I think we should get some help with deployment. I'm not sure we've got access to the .org repo for example.
Yes, let's do that as a separate PR. Let's open an issue so we don't forget. |
493bac8
to
c0fdd47
Compare
Changes proposed in this Pull Request
We've decided to offer additional Google fonts on WordPress.com. This PR adds those fonts to the Editing Toolkit > Global Styles > Font Selection options:
Testing instructions
To test this change on your sandbox you can apply the patch D47730-code and sandbox the public API, then test on your sandboxed site.
Theme Default
System Font
Arvo
Cabin
Chivo
Courier Prime
Domine
EB Garamond
Fira Sans
Josefin
Libre Baskerville
Libre Bodoni
Libre Franklin
Lora
Merriweather
Montserrat
Nunito
Open Sans
Overpass
Playfair Display
Poppins
Raleway
Roboto
Roboto Slab
Rubik
Source Sans Pro
Source Serif Pro
Space Mono
Work Sans
Fixes https://github.com/Automattic/dotcom-manage/issues/111