-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Improvements to custom styles in rx.markdown #1852
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be cool to add e2e tests for the new var operations in integration/test_var_operations.py
.
is this enough to fix #1283 too?
@@ -38,43 +52,18 @@ class Markdown(Component): | |||
|
|||
is_default = True | |||
|
|||
# Custom defined styles for the markdown elements. | |||
custom_styles: Dict[str, Style] = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we probably should deprecate this first, unless you think no one is using it or it's already broken
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes agreed, I will add this for the following release I think I can make the old version convert cleanly to the new one.
a4ea5cc
to
626e990
Compare
reflex/testing.py
Outdated
@@ -398,7 +398,7 @@ def frontend(self, driver_clz: Optional[Type["WebDriver"]] = None) -> "WebDriver | |||
) | |||
if self.frontend_url is None: | |||
raise RuntimeError("Frontend is not running.") | |||
driver = driver_clz() if driver_clz is not None else webdriver.Chrome() | |||
driver = driver_clz() if driver_clz is not None else webdriver.Firefox() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if we want to commit this...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed this, just had it locally for testing
Added option to set custom styles using a component map:
Then pass it in