Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Resolve issues stemming from WP's global margin-block-start and margin-block-end rules #64

Closed
admturner opened this issue Jul 17, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@admturner
Copy link
Member

Is your suggestion related to a problem? Please describe.

There are two global CSS styles coming from WordPress relating to spacing supports:

.wp-site-blocks > * + * {
  margin-block-start: var(--wp--preset--spacing--10);
}

and

.wp-site-blocks > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

Within body content these are fine, but outside of that they interfere with layout elements. Find a way to disable them, or override them.

Describe alternatives you have considered.

No response

@admturner admturner added the enhancement New feature or request label Jul 17, 2023
@admturner admturner added this to the 0.5.0 milestone Jul 17, 2023
@admturner
Copy link
Member Author

This stemmed from an issue in Core where layout styles were overriding global margin styles (see #43404). As of WP 6.3 this has been fixed in Core by reducing the specificity of the layout styles.

@admturner admturner self-assigned this Jul 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant