We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here's the markup for the code block:
<pre class="wp-block-code"><code></code></pre>
When setting a fontFamily:
"core/code": { "typography": { "fontFamily": "var(--wp--preset--font-family--base)" } }
The style gets applied to .wp-block-code, but that's the <pre> tag, and this causes the user agent stylesheet to take precedence:
.wp-block-code
<pre>
The solution here would be to apply font-family to .wp-block-code code rather than .wp-block-code.
font-family
.wp-block-code code
cc: Automattic/themes#3640
The text was updated successfully, but these errors were encountered:
carolinan
Successfully merging a pull request may close this issue.
Here's the markup for the code block:
When setting a fontFamily:
The style gets applied to
.wp-block-code
, but that's the<pre>
tag, and this causes the user agent stylesheetto take precedence:
The solution here would be to apply
font-family
to.wp-block-code code
rather than.wp-block-code
.cc: Automattic/themes#3640
The text was updated successfully, but these errors were encountered: