Skip to content

Presets selected by the user are not applied to the Post Title block #29381

Closed

Description

@oandregal

This is a bug that only affects the Post Title block at the moment, but would affect more as soon as the block selectors specificity is higher than the user-selected styles, as per #29155 in which we're opening up the block selectors to target inner blocks.

Step-by-step reproduction instructions

  • Use a theme with support for FSE (templates) and Global Style (theme.json), such as TT1-blocks.
  • Via theme.json target the post title for color styles by adding:
"core/post-title/h2": {
    "color": {
        "text": "green",
        "background": "yellow"
    }
}
  • Go to the editor, add a post title select some text and background preset colors for it (not custom).
  • Publish the post and go to the front end.

The expected behavior would be that the user choices are respected. Instead, the values of theme.json are applied.

Activity

  1. added
    Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json
    [Type] BugAn existing feature does not function as intended
    on Feb 26, 2021
  2. changed the title [-]Presets applied by the user are applied to the Post Title block[/-] [+]Presets selected by the user are not applied to the Post Title block[/+] on Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Status] In ProgressTracking issues with work in progress[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