Skip to content

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

Closed

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

Activity

  1. changed the title [-]Resetting block styles doesn't work after saving and reloading the site-editor[/-] [+]Block style resets doesn't work after saving and reloading the site-editor[/+] on Dec 13, 2022
  2. added
    Needs Testing
    Global Styles
    on Dec 13, 2022
  3. ndiego commented on Dec 13, 2022

    @ndiego
    Member

    This issue was reviewed in today's Editor Bug Scrub. I was able to confirm in TT3 using Gutenberg 14.7.1 and WordPress 6.1.1

  4. added
    [Type] Bug
    and removed
    Needs Testing
    on Dec 13, 2022
  5. talldan commented on Dec 14, 2022

    @talldan
    Contributor

    I think this was possibly fixed by #46486. I can't reproduce when testing against trunk.

  6. ramonjd commented on Dec 14, 2022

    @ramonjd
    Member

    I can reproduce. I’m trying to debug useStyle and it looks like that the merged config from the global styles context isn’t updated after a call to setUserconfig and is always returning whatever was saved before here.

    Not sure how to ensure a full update here...

  7. youknowriad commented on Jul 24, 2026

    @youknowriad
    Contributor

    Closing as likely fixed. I can't reproduce either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Global Styles[Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions