Skip to content

Commit 3483274

Browse files
fix: scope passive block focus to keyboard navigation (#10063)
The passive-focus selector for blocks and connection paths lacked the .blocklyKeyboardNavigation gate that the sibling field and icon selectors in the same rule already have, so passive block outlines leaked into mouse-only usage. It also never honored the dropdown/widget-div guard its own comment promised. Scope it identically to the field/icon selectors. Closes #10062
1 parent 26b6fad commit 3483274

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/blockly/core/css.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,12 @@ input[type=number] {
571571
572572
/* Passive focus cases: */
573573
/* Blocks with passive focus except when widget/dropdown div in use. */
574+
.blocklyKeyboardNavigation:not(
575+
:has(
576+
.blocklyDropDownDiv:focus-within,
577+
.blocklyWidgetDiv:focus-within
578+
)
579+
)
574580
.blocklyPassiveFocus:is(
575581
.blocklyPath:not(.blocklyFlyout .blocklyPath),
576582
.blocklyHighlightedConnectionPath

0 commit comments

Comments
 (0)