Skip to content

Font faces defined in variations aren't loaded in the browser until the variation switch is saved and the page is refreshed #59965

@matiasbenedetto

Description

@matiasbenedetto

Description

When switching style variations, the font faces defined in those variations are not loaded in the editor but after the page is reloaded.

Step-by-step reproduction instructions

  1. Switch to a theme style variation with custom font faces defined.
  2. Check that the fonts are not loaded in the editor until the page is refreshed (browser reload).

Screenshots, screen recording, code snippet

Look at the headings when a theme style variation is applied, they render the default font until the page is refreshed:

2024-03-18.16-39-33.mp4

Environment info

  • Gutenberg trunk

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Labels

[Feature] Theme Style VariationsRelated to style variations provided by block themes[Feature] TypographyFont and typography-related issues and PRs[Focus] Blocks AdoptionFor issues that directly impact the ability to adopt features of Gutenberg.[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions