Skip to content
This repository was archived by the owner on Jun 23, 2026. It is now read-only.

Commit df575f0

Browse files
committed
refactor(CSS): move .blocklyDeleteIcon to src/index.ts
1 parent 7ae6814 commit df575f0

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

src/index.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,16 @@ export class KeyboardNavigation {
129129
this.navigationController.shortcutDialog.toggle(this.workspace);
130130
}
131131
}
132+
133+
// Register CSS used by the plugin.
134+
//
135+
// This is broken up into sections by purpose, with some notes about
136+
// where it should eventually live.
137+
138+
// Enable the delete icon for comments.
139+
Blockly.Css.register(`
140+
.blocklyDeleteIcon {
141+
display: block;
142+
}
143+
`);
144+

test/index.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@
9292
--blockly-selection-width: 3px;
9393
}
9494

95-
.blocklyDeleteIcon {
96-
display: block;
97-
}
98-
9995
/* Blocks, connections and fields. */
10096
.blocklyKeyboardNavigation
10197
.blocklyActiveFocus:is(.blocklyPath, .blocklyHighlightedConnectionPath),

0 commit comments

Comments
 (0)