[wp-trac] [WordPress Trac] #56573: Twenty Nineteen: Search Button hover color issue

WordPress Trac noreply at wordpress.org
Thu Sep 15 10:15:54 UTC 2022


#56573: Twenty Nineteen: Search Button hover color issue
---------------------------+----------------------------
 Reporter:  tahmidulkarim  |       Owner:  audrasjb
     Type:  defect (bug)   |      Status:  accepted
 Priority:  normal         |   Milestone:  6.1
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  accessibility
---------------------------+----------------------------

Comment (by tahmidulkarim):

 @audrasjb, instead of adding the {{{color: #fff;}}} directly in the hover
 and focus states, I have created a CSS variable with the name
 {{{$color__text-button-hover}}} where the color code (#fff) is stored and
 then used that variable in the hover and focus state. This keeps the CSS
 style consistent with the other styles.

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


More information about the wp-trac mailing list