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 was archived by the owner on Aug 19, 2022. It is now read-only.
Unfortunately, when the item becomes unselected, Radium is using 0 for the paddingLeft value instead of the original 20px value. I’m assuming this is because I don’t have paddingLeft as a property in the default styles:
I was able to fix this by changing paddingLeft to padding + using a more explicit string value:
My gut tells me Radium should be able to intelligently merge related properties like padding + paddingLeft, margin + marginTop, etc. on modifier changes.
Is this the expected behavior?
Is it recommended to be explicit with value changes like these?
I have some buttons in a nav with a default padding value:
When selected, I add a thin left border + adjust only the left padding accordingly:
Unfortunately, when the item becomes unselected, Radium is using
0for thepaddingLeftvalue instead of the original20pxvalue. I’m assuming this is because I don’t havepaddingLeftas a property in the default styles:I was able to fix this by changing
paddingLefttopadding+ using a more explicit string value:My gut tells me Radium should be able to intelligently merge related properties like
padding+paddingLeft,margin+marginTop, etc. on modifier changes.