Description
Overview
This issue details the current state of dimensions and spacing block support or design tool adoption across all blocks and tasks required to fill any gaps. Overall design tool consistency efforts are being tracked via the parent issue: #43241.
Guidelines for Adopting Spacing Supports
- We're generally happy to have padding & margin support for all blocks. (Exceptions possible)
- We're leaning towards simple opt-in for margin support i.e.
true
rather than["top", "bottom"]
- Neither padding nor margin should be shown by default i.e. they're accessed via the ellipsis menu. (Exceptions possible)
- All blocks (except special cases like Heading & Paragraph) should have
box-sizing: border-box
. This will be reviewed on a case-by-case basis. (Exceptions likely).
Legend
Value | Description |
---|---|
✅ | Feature has been adopted and is displayed as a default control |
✅ (Optional) | Feature has been adopted but is an optional control |
⚠ | There is a bug or issue with this block support feature's adoption |
❌ | Feature has been explicitly opted out of |
<PR#> | Links to PR adopting the feature for this block |
- | Feature has not explicitly been adopted/omitted |
🛠 | Implemented via an ad hoc / bespoke control |
🚧 | Work is in progress towards adopting this feature (no PR yet) |
Block Support Adoption
Note: Deprecated blocks have been omitted from this table. e.g. Comment Author Avatar, Post Comment & Text Columns.
Block | Padding | Margin | Block Gap | Height | Width | Min Height | Aspect Ratio |
---|---|---|---|---|---|---|---|
Archives | ✅ (Optional) | ✅ (Optional) | - | - | - | - | - |
Audio | ✅ (Optional) | ✅ (Optional) | - | - | - | - | - |
Avatar | ✅ (Optional) | ✅ (Optional) | - | 🛠 | 🛠 | - | - |
Button | ✅ (Horizontal, Vertical) | - | - | - | 🛠 | - | - |
Buttons | ✅ | ✅ (Top, Bottom) | ✅ | - | - | - | - |
Calendar | ⚠ #43654 (Optional) | ⚠ #43654 (Optional) | - | - | - | - | - |
Categories | ✅ (Optional) | ✅ (Optional) | - | - | - | - | - |
Code | ✅ (Optional) | ✅ (Optional / Top, Bottom) | - | - | - | - | - |
Column | ✅ | - | ✅ | - | 🛠 | - | - |
Columns | ✅ | ✅ (Top, Bottom) | ✅ (Horizontal, Vertical) | - | - | - | - |
Comment Author Name | ✅ | ✅ | - | - | - | - | - |
Comment Content | ✅ (Horizontal, Vertical) | - | - | - | - | - | - |
Comment Date | ✅ | ✅ | - | - | - | - | |
Comment Edit Link | ✅ | ✅ | - | - | - | - | - |
Comment Reply Link | ✅ | ✅ | - | - | - | - | - |
Comment Template | ✅ | ✅ | - | - | - | - | - |
Comments | ✅ | ✅ | - | - | - | - | - |
Comments Pagination | #43905 | #43905 | - | - | - | - | - |
Comments Pagination Next | #43905 | #43905 | - | - | - | - | - |
Comments Pagination Numbers | #43905 | #43905 | - | - | - | - | - |
Comments Pagination Previous | #43905 | #43905 | - | - | - | - | - |
Comments Title | ✅ | ✅ | - | - | - | - | - |
Cover | ✅ | ✅ (Top, Bottom) | ✅ | - | - | 🛠 | ✅ |
Details | ✅ (Optional) | ✅ (Optional) | ✅ | - | - | - | - |
Embed | - | ✅ | - | - | - | - | - |
File | ✅ | ✅ | - | - | - | - | - |
Footnotes | ✅ (Optional) | ✅ (Optional) | - | - | - | - | - |
Gallery | ✅ (Optional) | ✅ (Optional) | ✅(Horizontal, Vertical) | 🛠 | 🛠 | - | - |
Group | ✅ | ✅ (Top, Bottom) | ✅ | - | - | ✅ | - |
Heading | ✅ (Optional) | ✅ (Optional) | - | - | - | - | - |
Home Link - Navigation | - | - | - | - | - | - | - |
HTML | - | - | - | - | - | - | - |
Image | - | ✅ | - | 🛠 | 🛠 | - | 🛠 |
Latest Comments | ✅ | ✅ | - | - | - | - | - |
Latest Posts | ✅ | ✅ | - | - | - | - | - |
List | ✅ (Optional) | ✅ (Optional) | - | - | - | - | - |
List Item | ✅ (Optional) | ✅ (Optional) | - | - | - | - | - |
Login/logout | ✅ (Optional) | ✅ (Optional) | - | - | - | - | - |
Media & Text | ✅ | ✅ | - | - | - | - | - |
More (Read More) | - | - | - | - | - | - | - |
Navigation | - | - | ✅ | - | - | - | - |
Navigation Link | - | - | - | - | - | - | - |
Navigation Submenu | - | - | - | - | - | - | - |
Next Page (Page Break) | - | - | - | - | - | - | - |
Page List | - | - | - | - | - | - | - |
Paragraph | ✅ (Optional) | ✅ (Optional) | - | - | - | - | - |
Post Author | ✅ | ✅ | - | 🛠 | 🛠 | - | - |
Post Author Biography | ✅ | ✅ | - | - | - | - | - |
Post Author Name | ✅ | ✅ | - | - | - | - | - |
Post Comments Count | ✅ | ✅ | - | - | - | - | - |
Post Comments Form | ✅ | ✅ | - | - | - | - | - |
Post Comments Link | ✅ | ✅ | - | - | - | - | - |
Post Content | ✅ (Optional) | - | ✅ | - | - | ✅ | - |
Post Date | ✅ | ✅ | - | - | - | - | - |
Post Excerpt | ✅ | ✅ | - | - | - | - | - |
Post Featured Image | ✅ | ✅ | - | 🛠 | 🛠 | - | 🛠 |
Post Navigation Link | - | - | - | - | - | - | - |
Post Template | - | - | ✅ | - | - | - | - |
Post Terms | ✅ | ✅ | - | - | - | - | - |
Post Title | ✅ | ✅ | - | - | - | - | - |
Preformatted | ✅ | ✅ | - | - | - | - | - |
Pullquote | ✅ | ✅ | - | - | - | ✅ (Optional) | - |
Query | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | - |
Query No Results | - | - | - | - | - | - | - |
Query Pagination | - | - | - | - | - | - | - |
Query Pagination Next | - | - | - | - | - | - | - |
Query Pagination Numbers | - | - | - | - | - | - | - |
Query Pagination Previous | - | - | - | - | - | - | - |
Query Title | ✅ | ✅ | - | - | - | - | - |
Quote | ✅ | ✅ | ✅ | - | - | ✅ (Optional) | - |
Read More | ✅ | ✅ (Top, Bottom) | - | - | - | - | - |
RSS | - | - | - | - | - | - | - |
Search | - | ✅ | - | - | 🛠 | - | - |
Separator | - | ✅ (Top, Bottom) | - | - | - | - | - |
Shortcode | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 |
Site Logo | ✅ (Optional) | ✅ (Optional) | - | - | - | - | - |
Site Tagline | ✅ (Optional) | ✅ (Optional) | - | - | - | - | - |
Site Title | ✅ (Optional) | ✅ (Optional) | - | - | - | - | - |
Social Link | #63782 | #63782 | - | - | - | - | - |
Social Links | ✅ (Optional) | ✅ | ✅ (Horizontal, Vertical) | - | - | - | - |
Spacer | ✅ | ✅ (Top, Bottom) | - | 🛠 | 🛠 | - | - |
Table | ✅ (Optional) | ✅ (Optional) | - | - | - | - | - |
Table of Contents | ✅ | ✅ | - | - | - | - | - |
Tag Cloud | ✅ | ✅ | - | - | - | - | - |
Term Description | ✅ | ✅ | - | - | - | - | - |
Time To Read | ✅ (Optional) | ✅ (Optional) | - | - | - | - | - |
Verse | ✅ (Optional) | ✅ (Optional) | - | - | - | ✅ (Optional) | - |
Video | ✅ (Optional) | ✅ (Optional) | - | - | - | - | - |
Known Issues
-
Several blocks adopting padding support will also probably need
box-sizing: border-box
added to their styles. A sweep should be completed before closing this issue. -
Before the Post Template block can fully adopt spacing supports it may need a bit of a refactor: Post Template: Refactor ad hoc flex container to use layout block support flex type #44557
Merged PRs
The following list details all the PRs merged as part of this effort to increase spacing support.
- Add margin/padding support to Archives block #43350
- Add margin and padding supports to Audio block. #43351
- Tag cloud: add spacing block supports #43367
- Table of contents: add spacing supports #43368
- Table: add spacing block supports #43370
- Term description: add spacing block supports #43372
- Spacer: add spacing block supports #43366
- Post Date: Add spacing support #43406
- Heading: Add padding support #43454
- Paragraph: Add spacing block supports #43455
- Query Title: Add padding support #43458
- Post Title: Add padding support #43457
- Video: add spacing block supports #43365
- List: add spacing block supports #43402
- Media & Text: Add spacing block supports #43456
- Verse: Add margin support #43461
- Categories List: Add spacing support #43647
- Comment Edit Link: Add spacing support #43657
- Comment Date: Add spacing support #43656
- Comment Reply Link: Add spacing support #43658
- Avatar: add padding support #43519
- Site Logo: add padding and margin support #43520
- Social Icons: Add missing padding support, update margin support #43885
- Add a minHeight block support under dimensions #45300
- Add spacing tools to time to read block #49392
- A margin option is added to the Embeded preview block #39384
- Preformatted: Add spacing support #45196
- Quote: Add spacing supports #63545
- Buttons: Add border, color, and padding block supports #63538
- Image: Adopt margin block support #63546
- Search: Add margin support #63547