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

How to override style on some containers that is generated from some components? #3837

Open
Alek99 opened this issue Aug 26, 2024 Discussed in #3831 · 0 comments
Open

How to override style on some containers that is generated from some components? #3837

Alek99 opened this issue Aug 26, 2024 Discussed in #3831 · 0 comments
Labels
bug Something isn't working

Comments

@Alek99
Copy link
Member

Alek99 commented Aug 26, 2024

Discussed in https://github.com/orgs/reflex-dev/discussions/3831

Originally posted by egonsung August 26, 2024
Hey everyone, I've come across this on a few occasions. I will start with the more straightforward one:
I wanted to fill in the width of the input field and the code looks like this:
rx.flex( rx.text(_('License key:'), whiteSpace="nowrap"), rx.flex( rx.debounce_input( rx.input( placeholder=_("Paste your license key here"), width="100%", margin="1em", on_change=State_a1.handle_license_key), debounce_timeout=5000, width="100%", alignSelf="stretch" ), width="100%", alignSelf="stretch" ), flexDirection="row", alignItems="center", justify="center", width="100%" ),
When I look into the inspection, something with the class "rt-TextFieldRoot" is preventing it from filling in the width.
Screenshot 2024-08-26 at 6 51 20 PM

On other occasions, like rx.table, I wanted to implement position:sticky, but there are a few containers with overflow:scroll and overflow:hidden, which anything other than overflow: inherit messes up how position:sticky works.

What are some of the ways to override those generated divs in reflex components?

Thank you.

@Alek99 Alek99 added the bug Something isn't working label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@Alek99 and others