[wp-trac] [WordPress Trac] #58875: The hover effect in theme.json is not working

WordPress Trac noreply at wordpress.org
Fri Feb 16 21:56:10 UTC 2024


#58875: The hover effect in theme.json is not working
----------------------------------+------------------------------
 Reporter:  titanchan             |       Owner:  (none)
     Type:  defect (bug)          |      Status:  new
 Priority:  normal                |   Milestone:  Awaiting Review
Component:  Editor                |     Version:  6.2.2
 Severity:  normal                |  Resolution:
 Keywords:  move-to-github close  |     Focuses:
----------------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:   => move-to-github close


Old description:

> While the color of nav links is working, the hover color of those is not
> working.
>
>   "core/navigation": {
>         "color": {
>           "text": "var(--wp--preset--color--midred-2)"
>         },
>         "elements": {
>           "link": {
>             ":hover": {
>               "color": {
>                 "text": "var(--wp--preset--color--lightred-3)"
>               }
>             }
>           }
>         }
>       }

New description:

 While the color of nav links is working, the hover color of those is not
 working.
 {{{
   "core/navigation": {
         "color": {
           "text": "var(--wp--preset--color--midred-2)"
         },
         "elements": {
           "link": {
             ":hover": {
               "color": {
                 "text": "var(--wp--preset--color--lightred-3)"
               }
             }
           }
         }
       }
 }}}

--

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


More information about the wp-trac mailing list