Skip to content

Global import for SASS #883

@kalaomer

Description

@kalaomer

What problem does this feature solve?

I try to import a file which has global styles to under scoped style. But they compiled scoped again.

Here is my code

.component-name {
    @import "./global_styles";
}

So global_styles is again scoped. But what if I can add global styles with like this

.component-name {
    @import :global("./global_styles");
}

This way is very useful when you try to manage child component's styles.

What does the proposed API look like?

.component-name {
    @import :global("./global_styles");
}

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