Skip to content

Commit

Permalink
List View: Fix focus outline style
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Feb 14, 2025
1 parent 3df54ec commit 16b84d8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
1 change: 1 addition & 0 deletions packages/block-editor/src/components/list-view/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ function ListViewBlock( {
tabIndex,
onClick: clearSettingsAnchorRect,
onFocus,
size: 'small',
} }
disableOpenOnArrowDown
expand={ expand }
Expand Down
17 changes: 1 addition & 16 deletions packages/block-editor/src/components/list-view/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
.block-editor-list-view-block__menu-cell,
.block-editor-list-view-block__mover-cell {
line-height: 0;
width: $button-size;
width: $button-size-small + $grid-unit-05;
vertical-align: middle;

> * {
Expand All @@ -323,21 +323,6 @@
opacity: 1;
}
}

&,
.components-button.has-icon {
width: $button-size-small;
min-width: $button-size-small;
padding: 0;
}
}

.block-editor-list-view-block__menu-cell {
padding-right: $grid-unit-05;

.components-button.has-icon {
height: 24px;
}
}

.block-editor-list-view-block__mover-cell-alignment-wrapper {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
}

.edit-site-sidebar-navigation-screen-navigation-menus__content {
.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell {
width: 100%;
}

.block-editor-list-view-leaf .block-editor-list-view-block-contents {
white-space: normal;
}
Expand Down

0 comments on commit 16b84d8

Please sign in to comment.