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
I wrote code to change the shade of rx.color used as background of rx.box depending on the conditions, but the background remains white.
When I replaced rx.color("gray", shade=3) with "var(--gray-3)" and rx.color("gray", shade=7) with "var(--gray-7)" it worked fine.
apparently rx.Color was being treated as an object var instead of being treated as a string, i made some fixes and it should be there for 0.6.4.
the issue that made this appear is that ObjectVar is typically a dict, and as such we don't translate bg to background-color, if you want a workaround, you can do "background-color" in style for now. we should adjust the logic for converting names to only treat object vars with_var_type == dict as style mapping.
Describe the bug
I wrote code to change the shade of rx.color used as background of rx.box depending on the conditions, but the background remains white.
When I replaced rx.color("gray", shade=3) with "var(--gray-3)" and rx.color("gray", shade=7) with "var(--gray-7)" it worked fine.
To Reproduce
Screenshots
Current output
Expected output
Specifics (please complete the following information):
Additional context
This may not be accurate, but I recall that this issue did not occur in previous versions.
The text was updated successfully, but these errors were encountered: