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

Can I change theme CSS based on parent class? #1157

Open
mmukhin opened this issue Feb 13, 2023 · 0 comments
Open

Can I change theme CSS based on parent class? #1157

mmukhin opened this issue Feb 13, 2023 · 0 comments

Comments

@mmukhin
Copy link

mmukhin commented Feb 13, 2023

Let's say this is my default <Input /> theme.
image

What if I wanted to create a different style for a form with a class ".form2", how would I adjust the <Input /> to have a red background only for a parent form with class ".form2"?

In CSS, I'd just do .form2 input { background: red; } but with these themes, I'm not sure how to target the parent of the input: {} styles. Can I do something similar to:
image

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

No branches or pull requests

1 participant