[wp-trac] [WordPress Trac] #56075: Twenty Twenty-One: Link color issue coming in front-end and backend side

WordPress Trac noreply at wordpress.org
Wed Jan 18 07:09:59 UTC 2023


#56075: Twenty Twenty-One: Link color issue coming in front-end and backend side
---------------------------+-----------------------------
 Reporter:  aezazshekh     |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Future Release
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  css
---------------------------+-----------------------------

Comment (by poena):

 I have not been able to make the color contrast change work correctly for
 the links.

 Another issue is that the theme has 17 references to {{{--wp--style--color
 --link}}} which as far as I can tell was only used while the experimental
 link color theme support worked.

 For example, this passage breaks the new link color option:

 {{{
 // Enforce the custom link color even if a custom background color has
 been set.
 // The extra specificity here is required to override the background color
 styles.
 .has-background {
         // Target both current level and nested block.
         .has-link-color a,
         &.has-link-color a {
                 color: var(--wp--style--color--link, var(--global--color-
 primary));
         }
 }

 }}}

 If we remove it, it will be a breaking change for users on WordPress 5.8.
 Do we consider that acceptable?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56075#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list