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

[REF-2117]:rx.color_mode_cond to work in f-strings #2775

Merged
merged 3 commits into from Mar 26, 2024

Conversation

ElijahAhianyo
Copy link
Collaborator

@ElijahAhianyo ElijahAhianyo commented Mar 4, 2024

The code below should now work with this PR change:

def index():
    return rx.box(
        rx.text("random"),
        bg="red",
        border_left=f'1px {rx.color_mode_cond("var(--mauve-11)", "var(--mauve-10)")} solid',
    )

Copy link

linear bot commented Mar 4, 2024

Copy link
Contributor

@picklelo picklelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for the delay - works well for me

@picklelo picklelo merged commit 8a2b92f into main Mar 26, 2024
66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants