소스 검색

remove modal prop from dialog (#2470)

Martin Xu 1 년 전
부모
커밋
3c7356ac3c
2개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 3
      reflex/components/radix/themes/components/dialog.py
  2. 0 2
      reflex/components/radix/themes/components/dialog.pyi

+ 0 - 3
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.
 

+ 0 - 2
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"