-
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
Add theme support for Twenty Twenty (and WordPress 5.3) #3342
Comments
Here's the manifest from the frontpage, which has visible defects in terms of styling some of the blocks:
These defects are gone once you open these posts in singular view. |
What I see from looking at the Gutenberg demo post:
Interestingly I wasn't seeing
I suppose it's just because I don't have enough content on the page. The excessive CSS issue would be addressed by #2326 on Standard mode sites. We should evaluate whether the amount of CSS is going to be too much in a normal case. I wasn't able to see
@schlessera How many posts do you have set to display on the front page? And I assume full content is being displayed? |
It is set to display 10 posts, however it is displaying 11 because of the sticky post. |
I can confirm that using AMP+"Twenty Twenty" + 3.5 without any special plugins. |
The CSS issue on my site is produced because my front page shows the full post for testing the core blocks. So, if a site uses many core blocks, the block stylesheet provided by core will blow up (almost hitting the 50kb on its own here). The more blocks that are used, the less the tree shaking can remove from that big stylesheet, of course. |
@markbiernat Thanks! This is the exact place to submit your testing feedback. The mobile menu not working is due to this point above:
This file has since been named to
|
Correction: It's the stylesheet provided by twentytwenty that is blowing up, and therefore the block stylesheet from Core is pushed out of the Looking at the generated styles, one big part of that deals with the custom font, "Inter". Also, some styling is overly verbose because the Gutenberg markup is missing vital information for targeting things like "any block" or "no alignment set", like this example:
|
"Search" isn't working on mobile. I can call up the Search field by tapping the magnifying glass, but if I tap within the field to enter a search term, the field disappears |
I can confirm the issue and will create a new PR to fix it. |
The culprit seems to be this change: c9b9afb#diff-5d05e505f93786061c2078486784c46dR1744-R1748 I'll need to think of a way to fix this without reintroducing the initial problem it was meant to fix. |
@csossi Fix is ready for QA. |
verified in qa |
Is there any update to when the AMP menu and Search will work with the Twenty Twenty theme? |
@westonruter thank you for the reply. |
Humm. For some reason the On your site: <button class="toggle search-toggle" data-toggle-target=".search-modal" data-toggle-screen-lock="true" data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field" aria-expanded="false">...</button> On my machine: <button class="toggle search-toggle desktop-search-toggle" data-toggle-target=".search-modal" data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field" aria-expanded="false" on="tap:amp-wp-id.open,amp-wp-id.toggleClass(class=show-modal,force=true),body.toggleClass(class=showing-modal,force=true),amp-wp-id.toggleClass(class='active'),AMP.setState({amp_wp_id: !amp_wp_id}),amp-wp-id-3.toggleClass(class='active'),amp-wp-id-4.toggleClass(class='active'),amp-wp-id-5.toggleClass(class='active'),body.toggleClass(class='showing-search-modal'),search-form-1.focus" id="amp-wp-id-4" data-amp-bind-aria-expanded="amp_wp_id ? 'true' : 'false'">...</button> I think it's because your theme slug is |
Thank you very much. It is appreciated. I am surprised I did not see that. |
WordPress 5.3 will have a new default core theme: Twenty Twenty. We need to make sure that it works as well as possible in AMP.
Note that Twenty Nineteen support (#1587) did not have 100% feature parity in AMP specifically due to the navigation+ menu on desktop and the sidebar menu on mobile. Ideally we'd be able to achieve complete parity. Note that this may involve submitting patches to Twenty Twenty itself to reduce dependence on JavaScript for implementing the desired functionality.
The text was updated successfully, but these errors were encountered: