-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Radix 3.0 #3159
Conversation
* add spinner from radix 3.0 * fix pyi * fix TextField.Input being removed * add cb_group, cb_cards, radio_card, skeleton, segmented_control, progress, data_list
Co-authored-by: Masen Furer <m_github@0x26.net>
Co-authored-by: Masen Furer <m_github@0x26.net>
avoid element not interactable error in github actions
@Lendemor could this PR have broken |
@benedikt-bartscher You are right. I have added a css class to
|
@benedikt-bartscher @abulvenz Python / Reflex : rx.input(value=State.x, class_name="test-class"), Compiled React : <RadixThemesTextField.Root
className={`test-class`}
value={state__state.x}
/> Compiled HTML in browser: <input spellcheck="false" class="rt-reset rt-TextFieldInput" value="Hello World 2"> |
May have read the html a bit too fast, the <div data-accent-color="" class="rt-TextFieldRoot rt-r-size-2 rt-variant-surface test-class">
<input spellcheck="false" class="rt-reset rt-TextFieldInput" value="Hello World 2">
</div> |
@abulvenz If I add a slightly different one, then it doesn't fail. diff --git a/integration/test_input.py b/integration/test_input.py
index a57219b9..3438f55c 100644
--- a/integration/test_input.py
+++ b/integration/test_input.py
@@ -28,6 +28,7 @@ def FullyControlledInput():
on_change=State.set_text, # type: ignore
value=State.text,
),
+ rx.input(placeholder="class name test", class_name="test_class"),
rx.input(value=State.text, id="value_input", is_read_only=True),
rx.input(on_change=State.set_text, id="on_change_input"), # type: ignore
rx.el.input(
@@ -81,6 +82,10 @@ async def test_fully_controlled_input(fully_controlled_input: AppHarness):
token_input = driver.find_element(By.ID, "token")
assert token_input
+ assert driver.find_element(
+ By.CLASS_NAME, "test_class"
+ ).is_displayed(), "Expecting input to be found and visible."
+
# wait for the backend connection to send the token
token = fully_controlled_input.poll_for_value(token_input)
assert token Will keep investigating. |
@benedikt-bartscher Did some testing on my side, all the class names should be on the encapsulating rx.input(
value=InputState.value,
on_change=InputState.set_value,
class_name="test-class w-screen",
) Using the above code, I have an input that properly take up the width of <div data-accent-color="" class="rt-TextFieldRoot rt-r-size-2 rt-variant-surface test-class w-screen">
<input spellcheck="false" type="text" class="rt-reset rt-TextFieldInput" value="">
</div> Feel free to open an actual issue with some repro code if some problem persist, but I think it is working fine as it is now. @abulvenz |
@Lendemor Ah, you are right. If I ask for it in the browser also the hidden input shows up |
@Lendemor thanks for investigating, seems like there is no bug in reflex, just a change introduced by radix 3.0 @abulvenz |
Upgrade to 3.0 version of Radix UI to include new components and some new features.