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

Add graphical empty state into block inserter #17326

Closed
21 changes: 20 additions & 1 deletion packages/block-editor/src/components/inserter/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ $block-inserter-search-height: 38px;
}

.block-editor-inserter__results {
align-items: center;
justify-content: center;
display: flex;
truchot marked this conversation as resolved.
Show resolved Hide resolved
flex-grow: 1;
overflow: auto;
position: relative;
Expand Down Expand Up @@ -123,9 +126,25 @@ $block-inserter-search-height: 38px;
}

.block-editor-inserter__no-results {
font-style: italic;
padding: 24px;
text-align: center;
color: $dark-gray-500;

&::before {
content: "?";
display: flex;
justify-content: center;
align-items: center;
padding: $grid-size-large * 1.38 $grid-size-large;
truchot marked this conversation as resolved.
Show resolved Hide resolved
margin-left: auto;
margin-right: auto;
font-style: normal;
font-size: 1.62em;
truchot marked this conversation as resolved.
Show resolved Hide resolved
color: $dark-gray-300;
border-radius: $radius-round-rectangle;
border: $border-width dashed $dark-gray-150;
margin-bottom: $grid-size-large;
}
}

.block-editor-inserter__child-blocks {
Expand Down