Skip to content

Commit 9dd894e

Browse files
committed
fix: Add a focus indicator to icons.
1 parent 6a2046f commit 9dd894e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@
104104
.blocklyActiveFocus:is(.blocklyPath, .blocklyHighlightedConnectionPath),
105105
.blocklyKeyboardNavigation
106106
.blocklyActiveFocus.blocklyField
107-
> .blocklyFieldRect {
107+
> .blocklyFieldRect,
108+
.blocklyKeyboardNavigation
109+
.blocklyActiveFocus.blocklyIconGroup
110+
> .blocklyIconShape:first-child {
108111
stroke: var(--blockly-active-node-color);
109112
stroke-width: var(--blockly-selection-width);
110113
}
@@ -115,7 +118,10 @@
115118
),
116119
.blocklyKeyboardNavigation
117120
.blocklyPassiveFocus.blocklyField
118-
> .blocklyFieldRect {
121+
> .blocklyFieldRect,
122+
.blocklyKeyboardNavigation
123+
.blocklyPassiveFocus.blocklyIconGroup
124+
> .blocklyIconShape:first-child {
119125
stroke: var(--blockly-active-node-color);
120126
stroke-dasharray: 5px 3px;
121127
stroke-width: var(--blockly-selection-width);

0 commit comments

Comments
 (0)