[wp-trac] [WordPress Trac] #51933: Specificity issues with TwentyTwelve heading font sizes & the block editor

WordPress Trac noreply at wordpress.org
Fri Dec 4 08:52:31 UTC 2020


#51933: Specificity issues with TwentyTwelve heading font sizes & the block editor
--------------------------+-----------------------------
 Reporter:  mrfoxtalbot   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  5.6
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 TwentyTwelve font sizes on headings only work if you add a specific
 number. Adding the "preset" sizes does not work due to the theme's styles
 being too specific:


 {{{
 .entry-content h2 {font-size: 18px;}
 }}}

 This seems to prevent the less specific heading font sizes styles (which
 only use one class) from working.


 {{{
 .has-huge-font-size {
     font-size: 42;
 }
 }}}

 I have also noticed an error in the inspector, I am not sure why the "42"
 there has does not specify px, rem or something.

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


More information about the wp-trac mailing list