Skip to content

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

@paradox460

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions