help-beta: Set svg fill color explicitly to currentColor.

unplugin-icons suggests to set the fill color, there were some cases
were it was being set to none.
This commit is contained in:
Shubham Padia
2025-05-14 11:36:17 +00:00
committed by Tim Abbott
parent 46c568cace
commit 231cae594e

View File

@@ -34,6 +34,11 @@ export default defineConfig({
throw new Error("Zulip icon not found.");
},
},
transform(svg, _collection, _icon) {
// unplugin-icons suggests to set the fill color,
// there were some cases were it was being set to none.
return svg.replace(/^<svg /, '<svg fill="currentColor" ');
},
}),
],
},