[wp-trac] [WordPress Trac] #55281: Twenty Twenty One Theme: Consider decreasing the selector specificity

WordPress Trac noreply at wordpress.org
Tue Mar 1 10:08:37 UTC 2022


#55281: Twenty Twenty One Theme: Consider decreasing the selector specificity
---------------------------+-----------------------------------------
 Reporter:  orkunaybek     |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:  5.9.1
 Severity:  normal         |   Keywords:  has-screenshots needs-patch
  Focuses:  css            |
---------------------------+-----------------------------------------
 There is a css selector that selects almost any a tags and applies white
 background on focus. This forces users to use at least 4 classes on
 elements to override by specificity and complicate the code. You can see
 mentioned selector and how it overrides the focus color of a button with 3
 classes already in attached screenshots. Why such strong selector is used
 there, is it really necessary, can we remove it or decrease the
 specificity?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55281>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list