Skip to content

Variable is undefined in mixins #921

Closed
@maxsite

Description

@maxsite
@color: red;

.scope() {
    .mixin () {
        h1: @color;
    }
}

.scope > .mixin; 

h1 red

.scope() {
    @color: red;

    .mixin () {
        h1: @color;
    }
}

.scope > .mixin; 

ERROR: @color is undefined

Why?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions