From 3c7356ac3c32786c1174b4e7616e47df7e3d4f12 Mon Sep 17 00:00:00 2001 From: Martin Xu <15661672+martinxu9@users.noreply.github.com> Date: Sun, 28 Jan 2024 15:56:45 -0800 Subject: [PATCH] remove modal prop from dialog (#2470) --- reflex/components/radix/themes/components/dialog.py | 3 --- reflex/components/radix/themes/components/dialog.pyi | 2 -- 2 files changed, 5 deletions(-) diff --git a/reflex/components/radix/themes/components/dialog.py b/reflex/components/radix/themes/components/dialog.py index 14e494497..0602831b7 100644 --- a/reflex/components/radix/themes/components/dialog.py +++ b/reflex/components/radix/themes/components/dialog.py @@ -18,9 +18,6 @@ class DialogRoot(CommonMarginProps, RadixThemesComponent): # The controlled open state of the dialog. open: Var[bool] - # The modality of the dialog. When set to true, interaction with outside elements will be disabled and only dialog content will be visible to screen readers. - modal: Var[bool] - def get_event_triggers(self) -> Dict[str, Any]: """Get the events triggers signatures for the component. diff --git a/reflex/components/radix/themes/components/dialog.pyi b/reflex/components/radix/themes/components/dialog.pyi index 4b3ee6d66..f3e8e9ad3 100644 --- a/reflex/components/radix/themes/components/dialog.pyi +++ b/reflex/components/radix/themes/components/dialog.pyi @@ -83,7 +83,6 @@ class DialogRoot(CommonMarginProps, RadixThemesComponent): ] ] = None, open: Optional[Union[Var[bool], bool]] = None, - modal: Optional[Union[Var[bool], bool]] = None, m: Optional[ Union[ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]], @@ -192,7 +191,6 @@ class DialogRoot(CommonMarginProps, RadixThemesComponent): color: map to CSS default color property. color_scheme: map to radix color property. open: The controlled open state of the dialog. - modal: The modality of the dialog. When set to true, interaction with outside elements will be disabled and only dialog content will be visible to screen readers. m: Margin: "0" - "9" mx: Margin horizontal: "0" - "9" my: Margin vertical: "0" - "9"