-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Font Library: fixes installed font families not rendering in the edit…
…or or frontend. (#59019) * Improves the sanitize_font_family function to output CSS valid font-family values according to CSS spec * add font-family css specific sanitization for fontFamily properties of the fonts from font collections * use _wp_to_kebab_case to format the font slug property of fonts from font collections * format comment * improving fontFontFamily and add formatFontFaceName functions to ensure that CSS properties are valid * load font face in both iframe and document * use the wordpress function to generate slugs for font files uploads * lint variable names * add exception for firefox in the font face name formatting * format php * improve php check * format php * replace firefox by gecko to cover all gecko engine browsers Co-authored-by: Juan Aldasoro <252415+juanfra@users.noreply.github.com> * remove not needed repeated call * using firefox and fxios to detect firefox browser user agent --------- Co-authored-by: Juan Aldasoro <252415+juanfra@users.noreply.github.com> Co-authored-by: matiasbenedetto <mmaattiiaass@git.wordpress.org> Co-authored-by: juanfra <juanfra@git.wordpress.org> Co-authored-by: arthur791004 <arthur791004@git.wordpress.org> Co-authored-by: richtabor <richtabor@git.wordpress.org> Co-authored-by: pbking <pbking@git.wordpress.org> Co-authored-by: getdave <get_dave@git.wordpress.org> Co-authored-by: okmttdhr <okat@git.wordpress.org> Co-authored-by: nith53 <nithins53@git.wordpress.org>
- Loading branch information
1 parent
620b7d1
commit 0a82d9f
Showing
7 changed files
with
184 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 13 additions & 1 deletion
14
...it-site/src/components/global-styles/font-library-modal/utils/make-families-from-faces.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0a82d9f
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.
Flaky tests detected in 0a82d9f.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7906889634
📝 Reported issues:
/test/e2e/specs/editor/blocks/navigation.spec.js