adeo / mozaic-design-system

Mozaic Design System
https://mozaic.adeo.cloud
Apache License 2.0
72 stars 17 forks source link

feat(styles/settings): make the `font-size` definition relative to the magic-unit value #1365

Closed tiloyi closed 1 year ago

tiloyi commented 1 year ago

I have read the contributing guidelines

Does this PR introduce a breaking change?

Describe the changes

Make the font-size definition relative to the magic-unit value

Currently, when a user customizes the value of the variable $local-rem-value, the values of the paddings & margins, update well, because they are based on the magic-unit.

However the font-size of the components defined with the mixin set-font-scale() it does not adapt.

So we should link the property value font-size to the value of the magic-unit, so that the font-size also adapts when the value of the variable $local-rem-value changes.