Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove width prop from rx.select #2835

Merged
merged 2 commits into from Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 1 addition & 4 deletions reflex/components/radix/themes/components/select.py
Expand Up @@ -181,9 +181,6 @@ class HighLevelSelect(SelectRoot):
# The radius of the select.
radius: Var[LiteralRadius]

# The width of the select.
width: Var[str]

# The positioning mode to use. Default is "item-aligned".
position: Var[Literal["item-aligned", "popper"]]

Expand All @@ -206,7 +203,7 @@ def create(cls, items: Union[List[str], Var[List[str]]], **props) -> Component:

trigger_props = {
prop: props.pop(prop)
for prop in ["placeholder", "variant", "radius", "width"]
for prop in ["placeholder", "variant", "radius"]
if prop in props
}

Expand Down
4 changes: 0 additions & 4 deletions reflex/components/radix/themes/components/select.pyi
Expand Up @@ -863,7 +863,6 @@ class HighLevelSelect(SelectRoot):
Literal["none", "small", "medium", "large", "full"],
]
] = None,
width: Optional[Union[Var[str], str]] = None,
position: Optional[
Union[
Var[Literal["item-aligned", "popper"]],
Expand Down Expand Up @@ -950,7 +949,6 @@ class HighLevelSelect(SelectRoot):
high_contrast: Whether to render the select with higher contrast color against background.
variant: The variant of the select.
radius: The radius of the select.
width: The width of the select.
position: The positioning mode to use. Default is "item-aligned".
size: The size of the select: "1" | "2" | "3"
default_value: The value of the select when initially rendered. Use when you do not need to control the state of the select.
Expand Down Expand Up @@ -1063,7 +1061,6 @@ class Select(ComponentNamespace):
Literal["none", "small", "medium", "large", "full"],
]
] = None,
width: Optional[Union[Var[str], str]] = None,
position: Optional[
Union[
Var[Literal["item-aligned", "popper"]],
Expand Down Expand Up @@ -1150,7 +1147,6 @@ class Select(ComponentNamespace):
high_contrast: Whether to render the select with higher contrast color against background.
variant: The variant of the select.
radius: The radius of the select.
width: The width of the select.
position: The positioning mode to use. Default is "item-aligned".
size: The size of the select: "1" | "2" | "3"
default_value: The value of the select when initially rendered. Use when you do not need to control the state of the select.
Expand Down