Skip to content

Site Editor: Selecting different fonts in Styles causes Editor to crash in certain themes #64952

@Imran92

Description

@Imran92

Description

Quick summary

Site editor crashes when selecting different font for Headings in Styles

What you expected to happen

I expected the font to change to the selected font, and be usable.

What actually happened

Editor crashed. Unable to continue.

Step-by-step reproduction instructions

Steps to reproduce

  1. Any site
  2. installed Pendant theme
  3. Browse to Site Editor, then Styles.
  4. Select a style
  5. Drilled down into Styles to Headings.
  6. Selected H1.
  7. I will crash, if not, take the next step
  8. Fonts, select any other font.
  9. Editor crashed with error: The editor has encountered an unexpected error.

Screenshots, screen recording, code snippet

Screen.Recording.2024-08-31.at.3.01.18.AM.mov

Environment info

  • Latest WP, latest Gutenberg

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

Assignees

No one assigned

    Labels

    Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions