Skip to content

Commit 28525e8

Browse files
committed
fix: hide svgsprite more thoroughly
1 parent b892260 commit 28525e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SVGSprite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class SVGSprite {
7676
}
7777

7878
// cache spriteContent into global spriteCache variable
79-
spriteCache[this.svgSpriteShortcode].spriteContent = `<div style="width: 0; height: 0;">${sprite.contents.toString('utf8')}</div>`;
79+
spriteCache[this.svgSpriteShortcode].spriteContent = `<div style="width: 0; height: 0; position: absolute; display: none;">${sprite.contents.toString('utf8')}</div>`;
8080
// fs.utimes('.', new Date(), new Date(), () => { });
8181
};
8282

0 commit comments

Comments
 (0)