Skip to content

Theme Export: CSS variables encoded on export #39576

Closed

Description

@scruffian

Description

The templates that had CSS variables when exporting turn into:

Step-by-step reproduction instructions

  1. Export a theme from the Site Editor
  2. Find a template that contains a CSS variable
  3. Notice that the CSS variables are encoded

Screenshots, screen recording, code snippet

No response

Environment info

No response

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. added
    [Feature] Themes
    [Feature] Site Editor
    on Mar 18, 2022
  2. scruffian commented on Mar 24, 2022

    @scruffian
    ContributorAuthor

    Update: I don't think this happens on export it happens when you save the content in the template editor...

  3. scruffian commented on Mar 24, 2022

    @scruffian
    ContributorAuthor

    After talking about this to @dmsnell I think this is actually the intended behaviour. We should be escaping these values to ensure that we avoid the risk of breaking things in the site editor. I'm going to close this one for now.

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

    [Feature] Site Editor[Feature] Themes

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions