Skip to content

Interpolated selectos and three letters long id selectors #2481

@SomMeri

Description

@SomMeri

Interpolation treats three letters long id selectors as colors and converts them into their long form:

@id: #abc;

.table @{id} {
  property: value;
}

compiles into

.table #aabbcc {
  property: value;
}

expected result:

.table #abc {
  property: value;
}

Note: string interpolation does the same thing.

Workaround - store only identifier in the variable:

@clean: abc;

.table #@{clean} {
  property: value;
}

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