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

targeting untagged elements #47

Closed
LoganDark opened this issue Jul 24, 2021 · 5 comments
Closed

targeting untagged elements #47

LoganDark opened this issue Jul 24, 2021 · 5 comments

Comments

@LoganDark
Copy link

I have a prose class from tailwindcss that styles all p and a and h1 and etc. elements inside of it, but the problem is those p and a and h1 elements do not have the data-v-whatever tag that react-scoped-css adds. So I need to find a way to target those, but it appears this isn't supported. :/

@LoganDark
Copy link
Author

Oh, if I append /deep/ to the selector then prose works perfectly. Had to switch to node-sass, but I'm already using craco so it's no big deal. Yay

@LoganDark
Copy link
Author

Nevermind, node-sass does not support :not, and sass has said it will never ever support /deep/ or >>>

@LoganDark
Copy link
Author

I think I worked around this at the time by having a separate completely unscoped CSS file just for this. I'm assuming the closure is because there's some other solution to this now? Is it #60?

@gaoxiaoliangz
Copy link
Owner

@LoganDark Yes, I believe #60 can solve your problem.

@LoganDark
Copy link
Author

If it works, then it should. I don't have that problem anymore, I've long since left that project. But hopefully in the future it should be a solved problem.

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

2 participants