Преглед изворни кода

rx.theme: Recognize `color_mode` in addition to `appearance` (#2635)

Masen Furer пре 1 година
родитељ
комит
b03fa5709f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      reflex/components/radix/themes/base.py

+ 1 - 1
reflex/components/radix/themes/base.py

@@ -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: