#52477 closed defect (bug) (fixed)
Twenty Twenty-One: Typo in style.css – missing `var( … )`
Reported by: | mukesh27 | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | good-first-bug has-patch commit |
Focuses: | Cc: |
Description
In the style.css file of Twenty Twenty One, there is a typo on line 2873:
p { line-height: var(--wp--typography--line-height, --global--line-height-body); }
The second argument to var is clearly meant to be var(--global--line-height-body), not the bare variable name --global--line-height-body. The latter is simply an invalid value.
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. I hope this gets the attention of someone who has the power to fix it!
props to @acerempel for support ticket - https://wordpress.org/support/topic/typo-in-style-css-missing-var/
Attachments (2)
Change History (13)
This ticket was mentioned in PR #985 on WordPress/wordpress-develop by acerempel.
4 years ago
#4
- Keywords has-patch added; needs-patch removed
This patch fixes three cases where the fallback parameter to a var(…)
call was meant to be a CSS variable, but was not itself surrounded in var(…)
.
Trac ticket: https://core.trac.wordpress.org/ticket/52477
#6
@
4 years ago
- Keywords commit added
@acerempel I think you did everything correct, and thank you. :)
The pull request looks good to me.
#7
@
4 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 50273:
This ticket was mentioned in Slack in #core-committers by dd32. View the logs.
4 years ago
This ticket was mentioned in Slack in #core by monikarao. View the logs.
4 years ago
hellofromtonya commented on PR #985:
4 years ago
#10
Merged in changeset https://core.trac.wordpress.org/changeset/50273
That's exactly where you are :)
Looking for cases in twentytwentyone where
var()
is used with a variable as the second value: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.