Skip to content

Allow guards to work with undefined variables #1400

@ESchuderer

Description

@ESchuderer
.guard () when (@variable) {
  a {
    color: red;
  }
}

Variable isn't defined, therefore no output.

@variable: true;

.guard () when (@variable) {
  a {
    color: red;
  }
}

Variable is definied, therefore output:

a {
  color: red;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions