Skip to content

Commit

Permalink
Limit spotlight mode to the editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfra committed Feb 8, 2024
1 parent df873e1 commit b8d4754
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-editor/src/components/block-list/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ _::-webkit-full-page-media, _:future, :root .has-multi-selection .block-editor-b
}

// Spotlight mode. Fade out blocks unless they contain a selected block.
.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) {
.wp-block-post-content.is-focus-mode .block-editor-block-list__block:not(.has-child-selected),
.wp-site-blocks.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) {
opacity: 0.2;
transition: opacity 0.1s linear;
@include reduce-motion("transition");
Expand Down

0 comments on commit b8d4754

Please sign in to comment.