Skip to content
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 block styles for padding #832

Closed
wants to merge 1 commit into from
Closed

Add block styles for padding #832

wants to merge 1 commit into from

Conversation

Inwerpsel
Copy link
Contributor

This way we don't have a ton of wrapper elements just for a bit of
padding.

planet-4 added a commit to greenpeace/planet4-test-venus that referenced this pull request Apr 20, 2022
/unhold 7898bb90-519e-4c96-be40-2b81c821c97b
This way we don't have a ton of wrapper elements just for a bit of
padding.
@planet-4
Copy link
Contributor

planet-4 commented Apr 20, 2022

Test instance is ready 🚀

🌑 venus | admin | blocks report | CircleCI | composer-local.json

⌚ 2022.04.20 12:29:14

planet-4 added a commit to greenpeace/planet4-test-venus that referenced this pull request Apr 20, 2022
/unhold 4b534818-8311-4a97-8c9a-390d4e012bc8
@@ -32,3 +32,18 @@
// Other
@import "blocks/WideBlocks";
@import "blocks/Editor";

.is-style-small-padding {
padding: 8px;
Copy link
Contributor

@GP-Dan-Tovbein GP-Dan-Tovbein Apr 20, 2022

Choose a reason for hiding this comment

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

Can we use $sp-1 here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you please pay attention to the essence of the PR while it's still in draft?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I chose these values because I quickly wanted to write an example, without having to worry about importing variables and decyphering their naming scheme.

}

.is-style-medium-padding {
padding: 16px;
Copy link
Contributor

@GP-Dan-Tovbein GP-Dan-Tovbein Apr 20, 2022

Choose a reason for hiding this comment

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

Can we use $sp-2 here?

}

.is-style-large-padding {
padding: 32px;
Copy link
Contributor

@GP-Dan-Tovbein GP-Dan-Tovbein Apr 20, 2022

Choose a reason for hiding this comment

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

Can we use $sp-4 here?

@Inwerpsel
Copy link
Contributor Author

@mleray This PR also uses block styles to add a padding around blocks without needing to wrap them in another block. If we have to choose, which one you think makes most sense?

Block spacing controls are one of the roadmap items for WP 6. They'll probably add the same spacing controls on all container blocks, including padding.

Full block links could be coming too, but that will definitely take longer.

It's also worth looking into block variations. They might be more appropriate for the full width link. That way the link is also visualized as the block name, and in the block list. An example is the core "row" block, which is just a variation of the group block with some pinned attributes.

@comzeradd comzeradd closed this Dec 13, 2022
@comzeradd comzeradd deleted the padding-styles branch December 13, 2022 13:29
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.

4 participants