Skip to content

Commit

Permalink
♿ Ikke skaler ikonstørrelse på lokal tekst, men rot-tekststørrelse (#772
Browse files Browse the repository at this point in the history
)

## Bakgrunn
Jeg brukte em istedenfor rem med et uhell. Så dersom noe tekst var større så ble ikonene større enn tenkt.

## Løsning
Bruker rem.
  • Loading branch information
FluidSense authored Aug 4, 2023
1 parent 2a8c1ec commit 451dd31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/spor-icon-elm/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ sizeToEm size =
${sizes
.map(
(sizeType) => `Size${sizeType} ->
"${sizeType / 16 + "em"}"`
"${sizeType / 16 + "rem"}"`
)
.join("\n ")}
`;
Expand Down

0 comments on commit 451dd31

Please sign in to comment.