Skip to content

Commit

Permalink
Make sure child leaves are colored correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Nov 17, 2022
1 parent f4caa6a commit 5ff8bd6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/block-editor/src/components/list-view/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
position: relative;

// The background has to be applied to the td, not tr, or border-radius won't work.
&.is-selected td {
&.is-selected:not(.is-synced-branch) td {
background: var(--wp-admin-theme-color);
}
&.is-selected.is-synced td {
&.is-selected.is-synced td,
&.is-selected.is-synced-branch td {
background: var(--wp-block-synced-color);
}
&.is-synced .block-editor-list-view-block-contents .block-editor-block-icon {
&.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon,
&.is-synced-branch:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon {
color: var(--wp-block-synced-color);
}
&.is-selected .block-editor-list-view-block-contents,
Expand All @@ -36,14 +38,15 @@
color: $gray-900;
}
}
&.is-selected .block-editor-list-view-block-contents:focus {
&.is-selected:not(.is-synced-branch) .block-editor-list-view-block-contents:focus {
&::after {
box-shadow:
inset 0 0 0 1px $white,
0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
}
}
&.is-selected.is-synced .block-editor-list-view-block-contents:focus {
&.is-selected.is-synced .block-editor-list-view-block-contents:focus,
&.is-selected.is-synced-branch .block-editor-list-view-block-contents:focus {
&::after {
box-shadow:
inset 0 0 0 1px $white,
Expand Down

0 comments on commit 5ff8bd6

Please sign in to comment.