You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
Hey fellow devs, I’ve just noticed a small bug while using the Text component on LLD, don’t know why I didn’t notice it earlier:
If we pass variant as a regular prop in rendering (e.g in a component that returns <Text variant="h1" />), the fontSize will be applied normally, but if we pass it as prop in a styled component’s attrs like so:
the fontFamily and fontWeight are working properly it seems, but the fontSize is not computed at all (it isn’t just overriden or sth like that, i checked the inspector)
Anyone has a clue why? 🧐 I guess it has something to do with how our styled-system is setup but it’s a mystery to me
The text was updated successfully, but these errors were encountered:
Hey fellow devs, I’ve just noticed a small bug while using the Text component on LLD, don’t know why I didn’t notice it earlier:
If we pass
variant
as a regular prop in rendering (e.g in a component that returns<Text variant="h1" />
), the fontSize will be applied normally, but if we pass it as prop in a styled component’sattrs
like so:the fontFamily and fontWeight are working properly it seems, but the fontSize is not computed at all (it isn’t just overriden or sth like that, i checked the inspector)
Anyone has a clue why? 🧐 I guess it has something to do with how our styled-system is setup but it’s a mystery to me
The text was updated successfully, but these errors were encountered: