-
Notifications
You must be signed in to change notification settings - Fork 5
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
CSS attribute selectors in media queries #12
Comments
Well, we could hack a way to make this possible, but that would impact perfs, and I don't see why you would need this. Why not just putting the media-query in the component denoted by "ComponentId" |
It's a long story. Just to clarify first: Will |
Your question makes sense for web but not so much for native... The thing that you could do is creating an high order component that would map the components to their ids or to a className, and use a context to keep it accessible to the descending components. That's how I would implement it in rn-css if I had too, but I don't think that it should be done as it would mean that you have to create your descending component using rn-css, and from what you say, this seems impossible. |
Ah, I see now that (Sidenote maybe useful for someone's future reference: Why not set |
Well... I'm not 100% sure I understood your message but you seem happy, so I guess that I can close this thread? 🙂 |
Yes, hehe. :) No need for me at this time. You could always reopen it if someone needs it later. |
In styled-components, you can use CSS attribute selectors in media queries, like in regular CSS:
Is this possible in rs-css?
The text was updated successfully, but these errors were encountered: