Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Shubham Padia231cae594e19
diff --git a/help-beta/astro.config.mjs b/help-beta/astro.config.mjs
index f5ecce2ec92..72a28991dc5 100644
--- a/help-beta/astro.config.mjs
+++ b/help-beta/astro.config.mjs
@@ -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" ');
+ },
}),
],
},