Skip to content

Commit b90c025

Browse files
Rich Taborrichtabort-hamanojasmussen
authored andcommitted
Fix shadow and border for pattern category panel (WordPress#62158)
Co-authored-by: richtabor <[email protected]> Co-authored-by: t-hamano <[email protected]> Co-authored-by: jasmussen <[email protected]>
1 parent 7713b41 commit b90c025

File tree

1 file changed

+6
-4
lines changed
  • packages/block-editor/src/components/inserter

1 file changed

+6
-4
lines changed

packages/block-editor/src/components/inserter/style.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,18 +329,20 @@ $block-inserter-tabs-height: 44px;
329329

330330
.block-editor-inserter__category-panel {
331331
background: $gray-100;
332-
border-left: $border-width solid $gray-200;
333-
border-right: $border-width solid $gray-200;
332+
border-top: $border-width solid $gray-200;
333+
box-shadow: $border-width $border-width 0 0 rgba($color: #000, $alpha: 0.133); // 0.133 = $gray-200 but with alpha.
334+
outline: 1px solid transparent; // Shown for Windows 10 High Contrast mode.
334335
position: absolute;
335-
top: 0;
336+
top: -$border-width;
336337
left: 0;
337-
height: 100%;
338+
height: calc(100% + #{$border-width});
338339
width: 100%;
339340
padding: 0 $grid-unit-20;
340341
display: flex;
341342
flex-direction: column;
342343

343344
@include break-medium {
345+
border-left: $border-width solid $gray-200;
344346
padding: 0;
345347
left: 100%;
346348
width: 300px;

0 commit comments

Comments
 (0)