[wp-trac] [WordPress Trac] #61697: Twenty Thirteen: Code block does not adjust font size with block settings (was: Twenty Thirteen Theme: The code block typography is not working properly on editor & front end sides.)

WordPress Trac noreply at wordpress.org
Thu Jul 18 20:43:30 UTC 2024


#61697: Twenty Thirteen: Code block does not adjust font size with block settings
-------------------------------------+-----------------------------
 Reporter:  viralsampat              |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Bundled Theme            |     Version:  6.6
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  css
-------------------------------------+-----------------------------
Changes (by sabernhardt):

 * keywords:  has-patch dev-feedback needs-testing => has-patch needs-
               testing
 * milestone:  Awaiting Review => Future Release


Comment:

 Twenty Thirteen sets 14-pixel font size for both `pre` and `code`, so
 [attachment:"61697.diff"]  proposes inheriting when the `code` element is
 nested inside a `pre` tag.

 That seems cleaner than editing the block-specific styles to inherit the
 block's size only when either its `class` or `style` attribute contains
 `font-size`.

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


More information about the wp-trac mailing list