Skip to content

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

Description

@paradox460

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

Activity

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

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