Skip to content

Commit e5ff7e4

Browse files
t-hamanoandrewserongafercia
authored
List View: Fix focus outline style (#69201)
Co-authored-by: t-hamano <[email protected]> Co-authored-by: andrewserong <[email protected]> Co-authored-by: afercia <[email protected]>
1 parent ab906d3 commit e5ff7e4

File tree

3 files changed

+3
-24
lines changed
  • packages

3 files changed

+3
-24
lines changed

packages/block-editor/src/components/list-view/block.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ function ListViewBlock( {
641641
tabIndex,
642642
onClick: clearSettingsAnchorRect,
643643
onFocus,
644+
size: 'small',
644645
} }
645646
disableOpenOnArrowDown
646647
expand={ expand }

packages/block-editor/src/components/list-view/style.scss

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@
7878
}
7979

8080
&:focus::after {
81-
box-shadow:
82-
inset 0 0 0 1px $white,
83-
0 0 0 var(--wp-admin-border-width-focus)
84-
var(--wp-block-synced-color);
81+
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
8582
}
8683
}
8784
&.is-selected .block-editor-list-view-block-contents,
@@ -308,7 +305,7 @@
308305
.block-editor-list-view-block__menu-cell,
309306
.block-editor-list-view-block__mover-cell {
310307
line-height: 0;
311-
width: $button-size;
308+
width: $button-size-small + $grid-unit-05;
312309
vertical-align: middle;
313310

314311
> * {
@@ -323,21 +320,6 @@
323320
opacity: 1;
324321
}
325322
}
326-
327-
&,
328-
.components-button.has-icon {
329-
width: $button-size-small;
330-
min-width: $button-size-small;
331-
padding: 0;
332-
}
333-
}
334-
335-
.block-editor-list-view-block__menu-cell {
336-
padding-right: $grid-unit-05;
337-
338-
.components-button.has-icon {
339-
height: 24px;
340-
}
341323
}
342324

343325
.block-editor-list-view-block__mover-cell-alignment-wrapper {

packages/edit-site/src/components/sidebar-navigation-screen-navigation-menus/style.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
}
99

1010
.edit-site-sidebar-navigation-screen-navigation-menus__content {
11-
.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell {
12-
width: 100%;
13-
}
14-
1511
.block-editor-list-view-leaf .block-editor-list-view-block-contents {
1612
white-space: normal;
1713
}

0 commit comments

Comments
 (0)