-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
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
Invisible cover block background colors #7471
Comments
@deepnees what primary (non-AMP) theme are you using? We did seek to address this previously in #6039. |
I think a block-based theme is being used here. Blocks-based themes rely on amp-wp/src/ReaderThemeSupportFeatures.php Lines 206 to 210 in 0737c78
Also, check this note. According to this we will need to get |
Yes, I tested it with TT1 theme |
Looks like the way to get the |
And more specifically: |
@westonruter Should we take into account the fluid font sizes that WordPress 6.1 offers? |
I'm not very familiar with them. If not taken into account, would the AMP version seem broken? |
Fluid font sizes are all about using It is being used in theme.json like: "fontSizes": [
{
"fluid": {
"min": "0.875rem",
"max": "1rem"
},
"size": "1rem",
"slug": "small"
},
] and being outputted as: --wp--preset--font-size--small: clamp(0.875rem, 0.875rem + ((1vw - 0.48rem) * 0.24), 1rem); If fluid typography is not used, then it will use font size from default/theme presets: --wp--preset--font-size--small: 13px; |
Got it. At the moment, these will be broken entirely due to php-css-parser failing to parse such complex CSS values. This was just raised in a support topic which we had already reported in #7291. I'm going to re-open the issue and think about a workaround. |
But yes, we should preserve fluid font sizes from the main theme when in Reader mode, same as we try to preserve the color palette. But the color palette is more important since lack of support can mean the text is impossible to read due to being white-on-white or black-on-black. |
#7496 aims to fix the above issue. It happened because of |
@deepnees This is now released on the WordPress.org Plugin Directory. |
Bug Description
Cover block background colors do not work as expected.
Expected Behaviour
Should render as in the editor.
Screenshots
PHP Version
8.1
Plugin Version
2.4.0
AMP plugin template mode
Reader
WordPress Version
6.1.1
Site Health
No issues
Gutenberg Version
No response
OS(s) Affected
No response
Browser(s) Affected
No response
Device(s) Affected
No response
Acceptance Criteria
No response
Implementation Brief
No response
QA Testing Instructions
No response
Demo
No response
Changelog Entry
No response
The text was updated successfully, but these errors were encountered: