Skip to content

Commit 4f8fb4f

Browse files
committed
add box-sizing attributes to blocks (removed in WP 6.0)
1 parent c12cfc0 commit 4f8fb4f

5 files changed

Lines changed: 7 additions & 4 deletions

File tree

build/index.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'b85cb5a985000519df857a97dc5414d9');
1+
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'b38e925bc3b30900615069b103bc1d18');

build/index.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/button/editor.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
}
1212

1313
.wp-block-wp-bootstrap-blocks-button {
14+
box-sizing: border-box;
1415
display: inline-block;
1516
padding: 8px 16px;
1617
background-color: $blue-50;

src/row/editor.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@
3939
> .editor-inner-blocks > .editor-block-list__layout {
4040
display: flex;
4141
flex-wrap: wrap;
42+
box-sizing: border-box;
4243

4344
> [data-type="wp-bootstrap-blocks/column"] {
4445
margin: 0;
46+
box-sizing: border-box;
4547

4648
// Grid implementation
4749
@include make-grid-columns();

0 commit comments

Comments
 (0)