Skip to content

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

@mmukhin

Description

@mmukhin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions