Skip to content

Updating the Font Library resets the colors and layout settings of the front-end and back-end #60343

@YanCol

Description

@YanCol

Description

When updating the Font Library, it resets the color palette and layout settings (width of the main content area) to their default values and breaks the design of the live website.

For example, if a user tries a font, does not like it, and doesn’t save the editor, the design of the site will be reset without their knowledge. Additionally, every user that updates the Font Library will inadvertently reset the style (colors and layout widths) of their live websites until they save the editor.

Step-by-step reproduction instructions

  1. Activate the Twenty Twenty-Four theme.
  2. Open the Site Editor.
  3. Select the Onyx style variation and save the changes.
  4. Visit the live website to confirm that your website appears dark.
  5. Open the Font Library and make any changes (e.g., remove Cardo Normal Italic).
  6. Update the Font Library.
  7. DO NOT SAVE the editor.
  8. Check your live website, and observe that your website is not dark anymore and has been reverted to the default colors.
  9. Reload the editor, and observe that your website in the editor is not dark anymore and has been reverted to the default colors.

Screenshots, screen recording, code snippet

font-library-issue.mp4

Environment info

WordPress 6.5 RC4 or Gutenberg 18.0.0

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

Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Feature] Font Library[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions