[wp-trac] [WordPress Trac] #60880: Twenty Nineteen: paragraph does not inherit font size from parent block within the editor

WordPress Trac noreply at wordpress.org
Tue Aug 13 00:32:15 UTC 2024


#60880: Twenty Nineteen: paragraph does not inherit font size from parent block
within the editor
-------------------------------------------------+-------------------------
 Reporter:  pitamdey                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Bundled Theme                        |     Version:  5.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-testing-info needs-patch has-    |     Focuses:  ui, css
  screenshots                                    |
-------------------------------------------------+-------------------------

Comment (by sabernhardt):

 The paragraph font size ruleset was added to override `16px` in WordPress
 5.0 and 5.1 but is unnecessary now.
 1. To continue supporting old versions, the `font-size` could be changed
 to `inherit`. It could even check the body classes with
 `:where(.branch-5-0, .branch-5-1) .editor-styles-wrapper p` if it should
 target only those versions. The two add up to only 1.02% of all
 [https://wordpress.org/about/stats/ recorded WordPress sites], but the
 chances of those sites using Twenty Nineteen would be higher than with
 other WordPress versions.
 2. In WordPress 6.6, deleting the `font-size` ruleset would make the
 default paragraphs the same `22px` size (taken from `body` in the iframe
 editor and Classic Editor, or from `.editor-styles-wrapper` in the non-
 framed editor). Both #61429 and #61474 have patches that proposed deleting
 the rule.

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


More information about the wp-trac mailing list