Skip to content

Commit

Permalink
feat!: default octicons to fill whitesmoke (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenverCoder1 authored May 26, 2022
1 parent 029d251 commit 41b424e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/services/octicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ async function getIcon(slug: string):
return null;
}
const icon = octicons[normalized as IconName];
// add 'xmlns' attribute to the svg
const svg = icon.toSVG().replace('<svg', '<svg xmlns="http://www.w3.org/2000/svg"');
// add 'xmlns' and 'fill' attribute to the svg
const svg = icon.toSVG().replace('<svg', '<svg xmlns="http://www.w3.org/2000/svg" fill="whitesmoke"');
return {
slug: icon.symbol,
type: 'svg+xml',
Expand Down

0 comments on commit 41b424e

Please sign in to comment.