Skip to content

Commit

Permalink
Tweak table block placeholder with __next40pxDefaultSize props (#56935)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Dec 11, 2023
1 parent b7dfe56 commit e2e7fce
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;
}
}

1 comment on commit e2e7fce

@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 e2e7fce.
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/7165338636
📝 Reported issues:

Please sign in to comment.