[wp-trac] [WordPress Trac] #52431: Bundled themes: Add support for the font size option for the code block

WordPress Trac noreply at wordpress.org
Wed Feb 3 07:20:47 UTC 2021


#52431: Bundled themes: Add support for the font size option for the code block
---------------------------+--------------------
 Reporter:  poena          |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  5.7
Component:  Bundled Theme  |    Version:  trunk
 Severity:  normal         |   Keywords:
  Focuses:  css            |
---------------------------+--------------------
 Add support for the block editor font size option for the code block,
 added in 5.7 (Gutenberg 9.5)

 The list block font size option added in 5.7 was also tested, no issues
 found.


 **Twenty Twenty-One:**
 The font size option does not work.
 As far as I know, it is not currently possible to set the default value in
 the option
 to the small font size that the theme currently uses.

 Related code:
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentytwentyone/assets/sass/05-blocks/code/_editor.scss?rev=50173#L2

 https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentytwentyone/assets/sass/05-blocks/code/_style.scss?rev=50173#L10

 **Twenty Twenty:**
 The option works.
 The text size in the editor and the front does not match, but this is
 true for other types of text not only the code block.

 **Twenty Nineteen:**
 The option works, there is a negligible text size difference between the
 editor and front.

 -----

 **Themes that are no longer "bundled" on new installs:**

 **Twenty Seventeen:**
 The font size option does not work.
 Related code:
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyseventeen/style.css#L540

 **Twenty Sixteen:**
 The font size option does not work on the front.
 Related code:
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentysixteen/css/blocks.css#L148

 **Twenty Fifteen:**
 The option works.

 **Twenty Fourteen:**
 The font size option does not work.
 Related code:
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyfourteen/style.css#L208
 and the RTL styles.

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


More information about the wp-trac mailing list