Update icon.md

This commit is contained in:
Lea Verou
2025-05-09 13:20:27 -04:00
parent eefa57f61a
commit 8a7a7dc3b0

View File

@@ -434,7 +434,7 @@ The browser will load the sprite sheet once and then you reference the particula
registerIconLibrary({
name: 'sprite',
getUrl: name => `/assets/images/sprite.svg#${name}`,
getMarkup: url => `<svg fill="currentColor"><use part="use" href="${url}"></use></svg>`
getMarkup: url => `<svg fill="currentColor"><use href="${url}"></use></svg>`
});
</script>
```