Skip to content

Media query not always captured when parsing Sass #12

@zastrow

Description

@zastrow

Had the following in my code. With this setup the media query was not captured setting the background color at all screen sizes, not just those under the max-width.

.element {
  @media (max-width: 600px) {
    &.modifier {
      @include brand(brand1) {
         background-color: brand-color(color2);
      }
      @include brand(brand1) {
         background-color: brand-color(color3);
      }
    }
  }
}

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