[wp-trac] [WordPress Trac] #58440: Twenty Nineteen: Inconsistent H1 font size (was: Twenty Nineteen - Inconsistent H1 font size)

WordPress Trac noreply at wordpress.org
Wed Jun 7 17:43:20 UTC 2023


#58440: Twenty Nineteen: Inconsistent H1 font size
---------------------------------------+------------------------------
 Reporter:  nkeller15                  |       Owner:  (none)
     Type:  defect (bug)               |      Status:  new
 Priority:  normal                     |   Milestone:  Awaiting Review
Component:  Bundled Theme              |     Version:  5.0
 Severity:  minor                      |  Resolution:
 Keywords:  has-screenshots has-patch  |     Focuses:  css
---------------------------------------+------------------------------
Changes (by sabernhardt):

 * version:  6.2.2 => 5.0


Comment:

 Headings with the `entry-title` class have
 [https://github.com/WordPress/twentynineteen/blob/be850d11ee31434ad700db518ff8570f82e65b9c/sass/typography/_headings.scss#L48
 always been smaller] than the `h1` element's size. I do not recommend
 increasing the size on the front end unexpectedly after more than four
 years, even if that is an improvement.

 Matching the editor to the front might be as simple as adding `.wp-block-
 post-title` with the `h2`
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentynineteen/style-editor.scss?rev=54106#L128 editor
 styles]:
 {{{
 .wp-block-post-title,
 h2 {
   font-size: $font__size-lg;
   @include post-section-dash;

   @include media(tablet) {
     font-size: $font__size-xl;
   }
 }
 }}}
 (Note: The `.wp-block-post-title` class would not work in older versions
 of WordPress, such as 5.0 and 5.3.)

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


More information about the wp-trac mailing list