Skip to content

Commit 2678f58

Browse files
authored
fix: Use SVG icon assets (#9569)
1 parent 01dc838 commit 2678f58

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

core/css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ input[type=number] {
461461
}
462462
463463
.blocklyMenuItemSelected .blocklyMenuItemCheckbox {
464-
background: url(<<<PATH>>>/sprites.png) no-repeat -48px -16px;
464+
background: url(<<<PATH>>>/sprites.svg) no-repeat -48px -16px;
465465
float: left;
466466
margin-left: -24px;
467467
position: static; /* Scroll with the menu. */

core/sprites.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
export const SPRITE = {
1212
width: 96,
1313
height: 124,
14-
url: 'sprites.png',
14+
url: 'sprites.svg',
1515
};

core/toolbox/category.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ Css.register(`
692692
}
693693
694694
.blocklyToolboxCategoryIcon {
695-
background-image: url(<<<PATH>>>/sprites.png);
695+
background-image: url(<<<PATH>>>/sprites.svg);
696696
height: 16px;
697697
vertical-align: middle;
698698
visibility: hidden;

media/sprites.png

-2.53 KB
Binary file not shown.

0 commit comments

Comments
 (0)