Skip to content

Commit

Permalink
Try always showing the dimensions controls (#50305)
Browse files Browse the repository at this point in the history
* Try always showing the dimensions controls

* Update defaults for Paragraph block
  • Loading branch information
tellthemachines authored May 8, 2023
1 parent 29a7028 commit f42be39
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,12 @@ function DimensionsToolsPanel( {
}

const DEFAULT_CONTROLS = {
contentSize: false,
wideSize: false,
padding: false,
margin: false,
blockGap: false,
minHeight: false,
contentSize: true,
wideSize: true,
padding: true,
margin: true,
blockGap: true,
minHeight: true,
childLayout: true,
};

Expand Down
6 changes: 5 additions & 1 deletion packages/block-library/src/paragraph/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,
Expand Down

1 comment on commit f42be39

@github-actions
Copy link

Choose a reason for hiding this comment

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

Flaky tests detected in f42be39.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4911790277
📝 Reported issues:

Please sign in to comment.