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

[NEW FEATURE] Support components as selectors #97

Open
budde377 opened this issue Nov 8, 2019 · 2 comments
Open

[NEW FEATURE] Support components as selectors #97

budde377 opened this issue Nov 8, 2019 · 2 comments

Comments

@budde377
Copy link

budde377 commented Nov 8, 2019

Thanks for a great project. We are currently trying to reference other components in the CSS, i.e.,

const Inner = styled.div`
`

const Container = styled.div`
  ${Inner} {
    background-color: red;
  }
`

but it seems that it'll stringify the component rather than resolve a class-name. I also found no examples of this in the project. Is this not supported?

@Pacch
Copy link

Pacch commented Nov 29, 2019

this update would be too cool

@liqueflies liqueflies changed the title Support components as selectors [NEW FEATURE] Support components as selectors Nov 28, 2020
@pgonzalez-santiago
Copy link

Hello. Any update in here? Is it possible to reference a child componente from its parent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants