Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak table block placeholder with __next40pxDefaultSize props #56935

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}
Loading