mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
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:
committed by
Tim Abbott
parent
46c568cace
commit
231cae594e
@@ -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" ');
|
||||
},
|
||||
}),
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user