Skip to content

Commit

Permalink
Tweak table block placeholder with __next40pxDefaultSize props
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Dec 11, 2023
1 parent 2642697 commit ec0dde8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
4 changes: 3 additions & 1 deletion packages/block-library/src/table/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ function TableEdit( {
>
<TextControl
__nextHasNoMarginBottom
__next40pxDefaultSize
type="number"
label={ __( 'Column count' ) }
value={ initialColumnCount }
Expand All @@ -564,6 +565,7 @@ function TableEdit( {
/>
<TextControl
__nextHasNoMarginBottom
__next40pxDefaultSize
type="number"
label={ __( 'Row count' ) }
value={ initialRowCount }
Expand All @@ -572,7 +574,7 @@ function TableEdit( {
className="blocks-table__placeholder-input"
/>
<Button
className="blocks-table__placeholder-button"
__next40pxDefaultSize
variant="primary"
type="submit"
>
Expand Down
15 changes: 1 addition & 14 deletions packages/block-library/src/table/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,14 @@
display: flex;
flex-direction: column;
align-items: flex-start;

> * {
margin-bottom: $grid-unit-10;
}
gap: $grid-unit-10;

@include break-medium() {
flex-direction: row;
align-items: flex-end;

> * {
margin-bottom: 0;
}
}
}

.blocks-table__placeholder-input {
width: $grid-unit-10 * 14;
margin-right: $grid-unit-10;
margin-bottom: 0;

input {
height: $button-size;
}
}

0 comments on commit ec0dde8

Please sign in to comment.