Skip to content

Commit 2b42db5

Browse files
authored
Spotlight mode: Fix inactive block's styling regression (#9951)
1 parent cbee072 commit 2b42db5

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

  • packages/editor/src/components/block-list

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

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@
3232
> .editor-block-list__block-edit .reusable-block-edit-panel * {
3333
z-index: z-index(".editor-block-list__block-edit .reusable-block-edit-panel *");
3434
}
35-
36-
&.is-focus-mode:not(.is-multi-selected) {
37-
opacity: 0.5;
38-
transition: opacity 0.1s linear;
39-
40-
&:not(.is-focused) .editor-block-list__block,
41-
&.is-focused {
42-
opacity: 1;
43-
}
44-
}
4535
}
4636

4737

@@ -171,6 +161,17 @@
171161
&.is-hovered > .editor-block-list__block-edit::before {
172162
outline: $border-width solid theme(outlines);
173163
}
164+
165+
// Spotlight mode
166+
&.is-focus-mode:not(.is-multi-selected) {
167+
opacity: 0.5;
168+
transition: opacity 0.1s linear;
169+
170+
&:not(.is-focused) .editor-block-list__block,
171+
&.is-focused {
172+
opacity: 1;
173+
}
174+
}
174175
}
175176

176177

0 commit comments

Comments
 (0)