[wp-trac] [WordPress Trac] #52477: Twenty Twenty-One: Typo in style.css – missing `var( … )`

WordPress Trac noreply at wordpress.org
Tue Feb 9 07:20:43 UTC 2021


#52477: Twenty Twenty-One: Typo in style.css – missing `var( … )`
----------------------------------------+------------------------------
 Reporter:  mukesh27                    |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Bundled Theme               |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  good-first-bug needs-patch  |     Focuses:
----------------------------------------+------------------------------

Comment (by dd32):

 > Normally I would file this kind of thing as a ticket or issue in the
 source control repository, but I couldn’t find a way to do that.

 That's exactly where you are :)

 Looking for cases where `var()` is used with a variable as the second
 value:
 {{{
 $ grep 'var' . -ri | grep '\-\-' | grep ', \-\-'
 ./style.css:    line-height: var(--wp--typography--line-height, --global
 --line-height-body);
 ./style-rtl.css:        line-height: var(--wp--typography--line-height,
 --global--line-height-body);
 ./assets/css/style-editor.css:  line-height: var(--wp--typography--line-
 height, --global--line-height-body);
 ./assets/css/style-editor.css:  line-height: var(--wp--typography--line-
 height, --global--line-height-body);
 ./assets/sass/05-blocks/heading/_editor.scss:           line-height:
 var(--wp--typography--line-height, --global--line-height-body);
 ./assets/sass/05-blocks/paragraph/_editor.scss: line-height: var(--wp--
 typography--line-height, --global--line-height-body);
 ./assets/sass/05-blocks/paragraph/_style.scss:  line-height: var(--wp--
 typography--line-height, --global--line-height-body);
 }}}

 Looks like the first four are just generated from the next three sass
 rules.

 If you wish to submit a patch, you can submit a diff to this ticket, or a
 GitHub PR to https://github.com/wordpress/wordpress-develop/ - you can
 simply avoid touching the compiled CSS files and just the source sass
 files.

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


More information about the wp-trac mailing list