Skip to content

[WP 6.1] Block-specific global styles don't seem to save #44434

Closed

Description

Description

  • Original trac ticket: https://core.trac.wordpress.org/ticket/56644 by @jorgefilipecosta
  • Moving here along with some added visuals to help out better understand the issue.
  • I could reproduce it with multiple blocks like paragraph, heading, button, site title, etc. It doesn't seem to be happening with all of the blocks, though.
  • The issue isn't specific to only colors. It's happening with other properties of a block too.
  • Block-specific global styles don't seem to save. Changing the global styles not under the Blocks section still works.
  • Was able to reproduce with both TT2 and TT3 themes.

Step-by-step reproduction instructions

Copy pasting from the trac ticket,

  1. Go to the site editor.
  2. Open the global styles sidebar.
  3. Open the blocks section.
  4. Navigate to the paragraph block (or button, heading, etc, I think most static blocks).
  5. Apply a background color.
  6. Save the global styles.
  7. The background color is wholly discarded on save.

Screenshots, screen recording, code snippet

wp6.1-global-styles.mov

Environment info

  • WP(6.1-beta1-54298)
  • TT2 or TT3 theme
  • PHP 7.4
  • Gutenberg plugin deactivated

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

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

Metadata

Assignees

No one assigned

    Labels

    Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Priority] HighUsed to indicate top priority items that need quick attention[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