Skip to content

Commit

Permalink
Fix missing selected block highlighting in list view (#24609)
Browse files Browse the repository at this point in the history
* Add back missing style for selected block in list view

* Override selected style on navigation screen
  • Loading branch information
talldan authored Aug 18, 2020
1 parent c348eb6 commit 0cbb9e2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ $tree-item-height: 36px;
margin-right: 6px;
}

&.is-selected .block-editor-block-icon svg,
&.is-selected:focus .block-editor-block-icon svg {
color: $white;
background: $gray-900;
box-shadow: 0 0 0 $border-width $gray-900;
border-radius: $border-width;
}

.block-editor-block-navigation-block__menu-cell,
.block-editor-block-navigation-block__mover-cell,
.block-editor-block-navigation-block__contents-cell {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@
> :first-child button {
padding-left: 0;
}

&.is-selected .block-editor-block-icon svg,
&.is-selected:focus .block-editor-block-icon svg {
color: $dark-gray-600;
background: transparent;
box-shadow: none;
}
}

.edit-navigation-editor__navigation-structure-panel {
Expand Down

0 comments on commit 0cbb9e2

Please sign in to comment.