From 83d99889ec38c9b88b73c34aa489c230e498afe5 Mon Sep 17 00:00:00 2001 From: Jishnu N Date: Fri, 31 May 2024 09:22:01 +0530 Subject: [PATCH] refactor: radix section default size (#3406) --- reflex/components/radix/themes/layout/section.py | 4 ++-- reflex/components/radix/themes/layout/section.pyi | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reflex/components/radix/themes/layout/section.py b/reflex/components/radix/themes/layout/section.py index 5f17b270c..13ff4d54e 100644 --- a/reflex/components/radix/themes/layout/section.py +++ b/reflex/components/radix/themes/layout/section.py @@ -16,5 +16,5 @@ class Section(el.Section, RadixThemesComponent): tag = "Section" - # The size of the section: "1" - "3" (default "3") - size: Var[LiteralSectionSize] + # The size of the section: "1" - "3" (default "2") + size: Var[LiteralSectionSize] = Var.create_safe("2") diff --git a/reflex/components/radix/themes/layout/section.pyi b/reflex/components/radix/themes/layout/section.pyi index 5b9ef9c5f..4442a31ed 100644 --- a/reflex/components/radix/themes/layout/section.pyi +++ b/reflex/components/radix/themes/layout/section.pyi @@ -123,7 +123,7 @@ class Section(el.Section, RadixThemesComponent): Args: *children: Child components. - size: The size of the section: "1" - "3" (default "3") + size: The size of the section: "1" - "3" (default "2") access_key: Provides a hint for generating a keyboard shortcut for the current element. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user. content_editable: Indicates whether the element's content is editable.