Skip to content

Twenty Twenty-Two: use custom values in spacers#2319

Draft
jffng wants to merge 1 commit intoWordPress:trunkfrom
jffng:update/tt2-template-margins
Draft

Twenty Twenty-Two: use custom values in spacers#2319
jffng wants to merge 1 commit intoWordPress:trunkfrom
jffng:update/tt2-template-margins

Conversation

@jffng
Copy link

@jffng jffng commented Feb 15, 2022

Use custom variable based values in spacer blocks instead of static pixel based ones.

Trac ticket: https://core.trac.wordpress.org/ticket/55169


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Copy link
Author

@jffng jffng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a draft for now because the required Gutenberg PR is not backported yet, as far as I can tell:

Screen Shot 2022-02-15 at 8 45 11 AM

<!-- /wp:image --></div>
<!-- /wp:group --><!-- wp:spacer {"height":66} -->
<div style="height:66px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:group --><!-- wp:spacer {"height":"calc(var(--wp--custom--spacing--large, 8rem) - var( --wp--style--block-gap ))"} -->
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kjell is this the correct value here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant