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
Describe the bug
You have a component with the variant property inside sx. This variant holds a responsive value, say fontSize: ["12px", "16px"]. If you then put another responsive value to the sx, then the variant's responsive value won't work.
Expected behaviour
The text should change it's fontSize
Additional context
It happens when using variant variant inside sx. If variant is used as a prop, it works as expected.
The text was updated successfully, but these errors were encountered:
julianbenegas
changed the title
Variant responsive values not working when other responsive values are present
Variant responsive values not working alongside other responsive values are present
Jun 27, 2020
julianbenegas
changed the title
Variant responsive values not working alongside other responsive values are present
Variant responsive values not working alongside other responsive values
Jun 27, 2020
Describe the bug
You have a component with the
variant
property insidesx
. Thisvariant
holds a responsive value, sayfontSize: ["12px", "16px"]
. If you then put another responsive value to thesx
, then the variant's responsive value won't work.To Reproduce
Steps to reproduce the behavior:
Expected behaviour
The text should change it's fontSize
Additional context
It happens when using variant variant inside
sx
. If variant is used as a prop, it works as expected.The text was updated successfully, but these errors were encountered: