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

Surface CSS scoping attributes don't work when root component is a component #710

Open
paradox460 opened this issue Sep 11, 2023 · 0 comments

Comments

@paradox460
Copy link

When you have a component that calls another component immediately, and the descendant component uses a function component, the scoping attributes do not apply to the resultant html

Form.ex:

~F"""
<.form #...
"""

MyForm.ex:

~F"""
<Form #...
"""

MyComponent.ex:

~F"""
<style>
:deep(form) {
background: purple;
}
</style>
<MyForm />

The resulting html will have no scoping attributes set

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