rx.theme: Recognize color_mode
in addition to appearance
(#2635)
This commit is contained in:
parent
7240f8ee6f
commit
b03fa5709f
@ -162,7 +162,7 @@ class Theme(RadixThemesComponent):
|
||||
A new component instance.
|
||||
"""
|
||||
if color_mode is not None:
|
||||
props["appearance"] = props.pop("color_mode")
|
||||
props["appearance"] = color_mode
|
||||
return super().create(*children, **props)
|
||||
|
||||
def _get_imports(self) -> imports.ImportDict:
|
||||
|
Loading…
Reference in New Issue
Block a user