Skip to content

Commit 41b424e

Browse files
authored
feat!: default octicons to fill whitesmoke (#433)
1 parent 029d251 commit 41b424e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/services/octicons.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ async function getIcon(slug: string):
1212
return null;
1313
}
1414
const icon = octicons[normalized as IconName];
15-
// add 'xmlns' attribute to the svg
16-
const svg = icon.toSVG().replace('<svg', '<svg xmlns="http://www.w3.org/2000/svg"');
15+
// add 'xmlns' and 'fill' attribute to the svg
16+
const svg = icon.toSVG().replace('<svg', '<svg xmlns="http://www.w3.org/2000/svg" fill="whitesmoke"');
1717
return {
1818
slug: icon.symbol,
1919
type: 'svg+xml',

0 commit comments

Comments
 (0)