Skip to content

Duplicated theme & user styles #30563

Closed
Closed

Description

@oandregal

Reported at #29985 (comment)

How to reproduce

  • Use the TT1-blocks theme and go to the site editor.
  • In the global styles sidebar, go to the "root" panel and change the "Dark Gray" color from #28303d to #28303e
  • Save the changes.
  • Go to the front-end and inspect the global-styles-inline-css embedded stylesheet.

The expected result is that:

  • there should be only one definition of --wp--preset--color--dark-gray whose value should be #28303e.
  • there should be only one preset class for .has-dark-gray-color.

What happens instead is that there are two definitions (theme & user data), as per:

Activity

  1. added
    [Type] BugAn existing feature does not function as intended
    Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json
    on Apr 7, 2021
  2. Sandstromer commented on Apr 7, 2021

    @Sandstromer

    Can I add that would it also be better if the .has-dark-gray-color used the variable rather than the explicit color?

    So, .has-dark-gray-color {color: #28303e;} should use .has-dark-gray-color {color: var(--wp--preset--color--dark-gray);} instead?

  3. oandregal commented on Jul 13, 2021

    @oandregal
    MemberAuthor

    Closing this one and it's no longer an issue.

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 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