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

Try: add a small radius to the multi selection style #44708

Merged
merged 2 commits into from
Oct 17, 2022
Merged
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
5 changes: 5 additions & 0 deletions packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@

// Block multi selection
.block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) {
// Apply a rounded radius to the entire block.
border-radius: $radius-block-ui;
overflow: hidden;

// Hide the native selection indicator, for the selection, and children.
&::selection,
& ::selection {
Expand All @@ -54,6 +58,7 @@
left: $border-width;
background: var(--wp-admin-theme-color);
opacity: 0.4;
border-radius: $radius-block-ui;

// Animate.
animation: selection-overlay__fade-in-animation 0.1s ease-out;
Expand Down