8000 Surface CSS scoping attributes don't work when root component is a component · Issue #710 · surface-ui/surface · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Surface CSS scoping attributes don't work when root component is a component #710
Open
@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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0