Skip to content

Commit

Permalink
Fix default block dimensions visibility (#52256)
Browse files Browse the repository at this point in the history
* core/heading

* core/details

* core/list

* core/table

* core/video

* core/verse

* core/social-links

* core/site-title

* core/site-tagline

* core/site-logo

* core/post-time-to-read

* core/gallery

* core/code

* core/categories

* core/audio

* core/archives
  • Loading branch information
richtabor authored Jul 4, 2023
1 parent 9ac0ed7 commit 5ba7484
Show file tree
Hide file tree
Showing 16 changed files with 76 additions and 16 deletions.
6 changes: 5 additions & 1 deletion packages/block-library/src/archives/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
"html": false,
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/audio/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@
"align": true,
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
}
},
"editorStyle": "wp-block-audio-editor",
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/categories/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
"html": false,
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/code/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@
},
"spacing": {
"margin": [ "top", "bottom" ],
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"__experimentalBorder": {
"radius": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/details/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
"html": false,
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,
Expand Down
4 changes: 3 additions & 1 deletion packages/block-library/src/gallery/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@
"blockGap": [ "horizontal", "vertical" ],
"__experimentalSkipSerialization": [ "blockGap" ],
"__experimentalDefaultControls": {
"blockGap": true
"blockGap": true,
"margin": false,
"padding": false
}
},
"color": {
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/heading/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/list/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"__unstablePasteTextInline": true,
"__experimentalSelector": "ol,ul",
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/post-time-to-read/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
"html": false,
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/site-logo/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
}
},
"styles": [
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/site-tagline/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/site-title/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@
},
"spacing": {
"padding": true,
"margin": true
"margin": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,
Expand Down
4 changes: 3 additions & 1 deletion packages/block-library/src/social-links/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
"padding": true,
"units": [ "px", "em", "rem", "vh", "vw" ],
"__experimentalDefaultControls": {
"blockGap": true
"blockGap": true,
"margin": true,
"padding": false
}
}
},
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/table/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/verse/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"__experimentalBorder": {
"radius": true,
Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/video/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@
"align": true,
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
}
},
"editorStyle": "wp-block-video-editor",
Expand Down

0 comments on commit 5ba7484

Please sign in to comment.