[wp-trac] [WordPress Trac] #50120: [Multiple Bundled Themes] Custom color palette styles need to be added to the editor stylesheet
WordPress Trac
noreply at wordpress.org
Wed Jul 1 20:26:56 UTC 2020
#50120: [Multiple Bundled Themes] Custom color palette styles need to be added to
the editor stylesheet
---------------------------+---------------------
Reporter: kjellr | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.5
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: | Focuses: css
---------------------------+---------------------
Changes (by sabernhardt):
* focuses: => css
Comment:
[attachment:"50120.patch"] gives the same `:root .editor-styles-wrapper
.has-x-color` pattern in each theme from Twenty Ten to Twenty Sixteen.
[attachment:"50120.1.patch"] uses selectors with lower specificity,
depending on what is necessary, for Twenty Ten to Twenty Sixteen. This
would not override the default editor stylesheet's colors, but currently
only the black and white have the same class names (and the colors match
anyway).
Additional work is needed for (at least) the two most recent themes:
1. Twenty Twenty - Default colors correctly show in the editor, but the
customized colors do not. (Editor styles use `twentytwenty_generate_css`.)
2. Twenty Nineteen - I noticed that choosing background colors can set the
block's text color but no background color in the editor. Both default and
custom colors require attention.
(Twenty Seventeen does not have its own color palette.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50120#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list