Skip to content

Commit c64290e

Browse files
authored
test: set width and height on icon imgs (#55)
1 parent 5ef7415 commit c64290e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/decorate.js

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ export function decorateIcon(span, prefix = '', alt = '') {
5656
img.src = `${window.hlx.codeBasePath}${prefix}/icons/${iconName}.svg`;
5757
img.alt = alt;
5858
img.loading = 'lazy';
59+
img.width = 16;
60+
img.height = 16;
5961
span.append(img);
6062
}
6163

0 commit comments

Comments
 (0)