[wp-trac] [WordPress Trac] #59164: Twenty Nineteen : Site Title Block Color Section is not reflecting properly in Editor & Frontend Side
WordPress Trac
noreply at wordpress.org
Tue Aug 13 03:02:19 UTC 2024
#59164: Twenty Nineteen : Site Title Block Color Section is not reflecting properly
in Editor & Frontend Side
---------------------------+-----------------------------
Reporter: pitamdey | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
---------------------------+-----------------------------
Comment (by sabernhardt):
In the iframe editor, `block-library` styles set links in the Site Title
block to inherit the text color at a specificity of `0-1-0`.
{{{
/* block-library/editor.css */
.editor-styles-wrapper :where(.wp-block-site-title a) {
color: inherit;
}
/* block-library/style.css */
:root :where(.wp-block-site-title a) {
color: inherit;
}
}}}
I think the editor styles might only need this to show the default blue:
{{{
.wp-block-site-title a {
color: $color__link;
}
}}}
When users change the accent color in the Customizer, that color is added
at a higher specificity:
{{{
/* from twentynineteen_custom_colors_css() */
.editor-styles-wrapper .wp-block a {
color: hsl( 316, 100%, 33% );
}
/* from editor inline styles */
.editor-styles-wrapper .wp-elements-1 a:where(:not(.wp-element-button)) {
color: var(--wp--preset--color--secondary);
}
}}}
The issue with the background color is separate and reported on multiple
tickets (#49931, 61138, #61429, #61474).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59164#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list