Skip to content

Commit

Permalink
use fill attribute instead of inline styles (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
iliana authored Apr 12, 2024
1 parent fb483b1 commit 78fae12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const renderPixels = (hash: string) => {

const pixelsToSvg = (pixels: Rectangle[]): string => {
let xml = `<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28">
<g style="fill: currentColor">`
<g fill="currentColor">`

pixels.forEach((pixel) => {
if (!pixel.isPixel) {
Expand Down

0 comments on commit 78fae12

Please sign in to comment.