Skip to content

Cannot override variable imported via :extend() #3706

@Bilge

Description

@Bilge

To reproduce:

@color: red;

a {
  color: @color;
}

.foo {
  a:extend(a all) {
    @color: green;
  }
}

Current behavior:

.foo a colour is red.

Expected behavior:

.foo a colour is green.

Environment information:

  • less version: 4.1.2
  • nodejs version: v14.15.3
  • operating system: windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions