KEMBAR78
Important on mixin not working on embedded media queries. · Issue #2917 · less/less.js · GitHub
Skip to content

Important on mixin not working on embedded media queries. #2917

@Giwayume

Description

@Giwayume

This:

.mixin() {
  .classname {
    color: green;
    @media screen and(max-width: 500px) {
      color: red;
    }
  }
}
.mixin() !important;

Generates:

.classname {
  color: green !important;
}
@media screen and (max-width: 500px) {
  .classname {
    color: red;
  }
}

Shouldn't the media query have color: red !important ?

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