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
Hello. The fix is not correct. Now If I dont specify variant (which not necessary according to TS definition, see the screenshot)
It throws 2 different errors:
when no textVariants specified:
2. when `textVariants` specified but `variant` prop not used for the `Text` component:
So, my suggestion is either set variant as required prop in the component or just do not add variant prop when it's not set.
Or 3d option: document that issue in text section. I have wasted 1h trying to solve the problem with digging into the source.
I've hunted around in the issues but I can't seem to figure out if I'm missing something obvious here.
It seems like the component created with
createText
will only use thedefaults
from the theme if avariant
prop is used.Am I missing something here?
The text was updated successfully, but these errors were encountered: