Skip to content

Block style resets doesn't work after saving and reloading the site-editor #46505

@madhusudhand

Description

@madhusudhand

Description

Editor styles remain unchanged on resetting block styles such as typography, after saving and reloading.

Step-by-step reproduction instructions

  1. Navigate to global styles and blocks.
  2. Choose a block such as paragraph.
  3. Update any settings such as typography -> font-family. (Editor is updated)
  4. Save the changes.
  5. Reload the editor or launch a fresh tab and edit site.
  6. Reset the same setting as above. typography -> font-family -> Reset (from the three dots menu)
  7. Observe that it doesn't reset the font dropdown or font-family of the paragraph.

Note: This issue happens only after the reload.

Screenshots, screen recording, code snippet

style-resets

Environment info

  • Wordpress: Latest (6.1)
  • Gutenberg: latest trunk (after 14.7.1)

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[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions