Skip to content

theme.json blocks styles duplicates css #65535

Open

Description

Description

I'm setting default color for block core/separator using css property and i noticed duplication of inline css.

theme.json

"styles":{
  "blocks": {
        "core/separator": {
          "css": "color:var(--wp--preset--color--rich-electric-blue)"
        }
  }
}

Result:
image

When i remove this css:
image

Step-by-step reproduction instructions

  • set up theme.json like above

Screenshots, screen recording, code snippet

No response

Environment info

  • WP 6.6.2

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

    [Block] SeparatorAffects the Separator BlockAffects the Separator Block[Type] BugAn existing feature does not function as intendedAn 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