Themes team meeting agenda for September 13, 2022

This is the themes team biweekly team meeting agenda.

The themes team conducts a meeting on the second and fourth Tuesday of the month. This month second meeting is on 13th of September.

The meeting takes place in the #themereview channel on the WordPress SlackSlack Slack is a Collaborative Group Chat Platform https://slack.com/. The WordPress community has its own Slack Channel at https://make.wordpress.org/chat/ and you need an account to participate.

Channel: #themereview | Time: Tuesday, September 13 2022, 15:00 UTC

Along with the fixed agendas, we have an open floor at the end where you can ask or share anything related to themes.

We encourage all members, and anyone interested to attend. You can also add your agenda in the comment section below.

Meeting agenda

  1. Weekly updates
  2. Testing Full-Width Blocks and Root Padding
  3. WordCamps contributor dayContributor Day Contributor Days are standalone days, frequently held before or after WordCamps but they can also happen at any time. They are events where people get together to work on various areas of https://make.wordpress.org/ There are many teams that people can participate in, each with a different focus. https://make.wordpress.org/support/handbook/getting-started/getting-started-at-a-contributor-day/ sharing (WCUS and WCKTM)
  4. Open floor

1. Weekly updates

Current statistics can be found on: https://themes.trac.wordpress.org/ 

Themes TracTrac Trac is the place where contributors create issues for bugs or feature requests much like GitHub.https://core.trac.wordpress.org/. ticket graph: https://themes.trac.wordpress.org/ticketgraph

Check regular weekly updates here.

2. Testing Full-Width Blocks and Root Padding

Last week @greenshady wrote an article about Full-Width blocks and root padding which is coming with WordPress 6.1.

If you are blockBlock Block is the abstract term used to describe units of markup that, composed together, form the content or layout of a webpage using the WordPress editor. The idea combines concepts of what in the past may have achieved with shortcodes, custom HTML, and embed discovery into a single consistent API and user experience. theme developer, then we recommend you check and test this feature. Check how to test section and follow the steps to check this feature.

3. WordCamps contributor day sharing (WCUS and WCKTM)

WordCampWordCamp WordCamps are casual, locally-organized conferences covering everything related to WordPress. They're one of the places where the WordPress community comes together to teach one another what they’ve learned throughout the year and share the joy. Learn more. Kathmandu and WordCamp US concluded successfully. Themes team would like to thank you all who attended WordCamp as well as contributor day.

Thank you @anilbasnet for leading themes table at WCKTM and @daisyo for leading WCUS themes table. Attendees, share what you’ve in the comment section below or during the meeting.

You can check upcoming WordCamps and join contributor day as well.

4. Open floor

We will discuss everything related to themes. Attendees can ask or share themes-related things.

Please comment in the comment box below if you have anything to bring up during the open floor.

#meeting, #themes-team

Full-Width Blocks and Root Padding in WordPress 6.1

Just under a year ago, a root padding solution was introduced for blockBlock Block is the abstract term used to describe units of markup that, composed together, form the content or layout of a webpage using the WordPress editor. The idea combines concepts of what in the past may have achieved with shortcodes, custom HTML, and embed discovery into a single consistent API and user experience. themes. This allowed designers to add padding values to their theme.json files and users to adjust it via the Styles panel in the site editor. However, there was one catch. There was no built-in way to allow full-width blocks to stretch beyond any horizontal padding and reach the edge of the screen. It was the bane of many theme author’s existence. Sure, they could write custom CSSCSS CSS is an acronym for cascading style sheets. This is what controls the design or look and feel of a site. solutions to address the problem, but that didn’t solve cases where end-users customized things.

Eventually, this issue was fixed in GutenbergGutenberg The Gutenberg project is the new Editor Interface for WordPress. The editor improves the process and experience of creating new content, making writing rich content much simpler. It uses ‘blocks’ to add richness rather than shortcodes, custom HTML etc. https://wordpress.org/gutenberg/ 13.8 and will land in WordPress 6.1.

The fix added a new useRootPaddingAwareAlignments option to the theme.json standard. The following is an example of its usage:

{
    "version": 2,
    "settings": {
        "useRootPaddingAwareAlignments": true
    },
    "styles": {}
}

If set to true, root padding gets added to Group blocks with a constrained layout, and any nested full-width blocks will stretch outside of the Group. If set to false, the padding is applied to the site-wide wrapper, and full-width blocks will not break outside of their containers.

For this to work, there is one caveat. Any padding applied via styles.spacing.padding must be in its object form rather than CSS shorthand (this does not apply to other padding usages, only the root level). The following is an example of how these two features work together:

{
    "settings": {
        "useRootPaddingAwareAlignments": true
    },
    "styles": {
        "spacing": {
            "padding": {
                "top": "0px",
                "right": "2rem",
                "bottom": "0px",
                "left": "2rem"
            }
        }
    }
}

How to Test

To test, you should install the latest version of the Gutenberg plugin (currently version 14.0). Then, install the Twenty Twenty-Three theme, which is currently under development. It already has both the useRootPaddingAwareAlignments and styles.spacing.padding values set. You can adjust these to your liking.

Open a new post or page and add some content to it. Then, add at least one full-width block, such as an image.

When viewing the post on the front end of the site, the full-width block should stretch to the edge of the screen while maintaining padding on other elements, as shown in the following screenshot:

Website page view with Chrome developer tools open. An overlay shows padding on the edges of the screen.

Any feedback or questions on this new feature is welcome:

  • Does the padding solution work as expected?
  • Do full-width blocks stretch beyond the container’s padding when in use?
  • Did you run into any problems when testing?

How the Solution Works

For theme authors, they only need to know how to set this up in their theme.json files, as shown above. For those who want to dig a bit deeper into the inner workings, this section will describe how it all comes together.

When setting useRootPaddingAwareAlignments to true, root left and right padding values are applied at the block level instead of the site-wide wrapper. Group blocks with constrained layouts are given the .has-global-padding class so that they are output as shown in the following code snippet:

<div class="has-global-padding is-layout-constrained wp-block-group">
    <!-- nested blocks -->
</div>

Suppose that you added a full-width Cover block inside of that Group. The HTMLHTML HTML is an acronym for Hyper Text Markup Language. It is a markup language that is used in the development of web pages and websites. would look similar to the following:

<div class="has-global-padding is-layout-constrained wp-block-group">
	<div class="wp-block-cover alignfull"></div>
</div>

Remember that the outer Group block now has padding applied to it. To allow the Cover block to stretch outside of it, WordPress will give it negative left and right margins equal to the padding.

Known Issues

Currently, there is still one outstanding issue. When nesting constrained Groups, each get the .has-global-padding class. However, this creates additional horizontal padding at each nested level. There is a ticket where a solution is being discussed.

Props to @kafleg for technical review and feedback.

X-post: TT3 default theme: Announcing style variation selections

X-comment from +make.wordpress.org/design: Comment on TT3 default theme: Announcing style variation selections

X-post: Themes team update September 06, 2022

X-comment from +make.wordpress.org/updates: Comment on Themes team update September 06, 2022

X-post: Use of accessibility-ready tag for block-based themes

X-comment from +make.wordpress.org/accessibility: Comment on Use of accessibility-ready tag for block-based themes