💄(react) improve DX when converting px to rem values
It can be tricky, while integrating the figma design file, to map some small px values to their rem equivalent. Thus, this PR proposes a new util function converting pixel to rem. It would ensure that all size values can scale base on the font-size base, while keeping a good developer experience.
This commit is contained in:
committed by
aleb_the_flash
parent
aa4dcdd800
commit
fe91471127
5
.changeset/rotten-bears-raise.md
Normal file
5
.changeset/rotten-bears-raise.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@openfun/cunningham-react": minor
|
||||
---
|
||||
|
||||
add pixel-to-rem sass util function
|
||||
Reference in New Issue
Block a user