Skip to content

Twenty Twenty-One: Support custom colors in the template editor#1626

Draft
carolinan wants to merge 1 commit intoWordPress:masterfrom
carolinan:try/tt1-template-editor-custom-colors
Draft

Twenty Twenty-One: Support custom colors in the template editor#1626
carolinan wants to merge 1 commit intoWordPress:masterfrom
carolinan:try/tt1-template-editor-custom-colors

Conversation

@carolinan
Copy link
Copy Markdown
Contributor

@carolinan carolinan commented Aug 27, 2021

Supports custom colors in the template editor using block_editor_settings_all.
Adds the is-dark-theme CSS class to the body of the template editor iframe.

This fixes an issue where the background color selected in the customizer did not display in the template editor,
with or without dark mode enabled.

Relies on #1455
The colors will not display correctly without 1455.

What is left to do:

  • Add a version check to avoid problems for versions below WordPress 5.8.
  • Fix any coding standard issues and optimizations.
  • Testing
  • Add props to ellatrix :)

Trac ticket: https://core.trac.wordpress.org/ticket/53564


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Support custom colors in the the template editor using block_editor_settings_all.
Add the is-dark-theme CSS class to the body of the template editor iframe.

Trac: https://core.trac.wordpress.org/ticket/53564
kjellr added a commit to kjellr/wordpress-develop that referenced this pull request Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant