Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Variables placed outside a mixin are not properly compiled #322

Open
tarekoraby opened this issue Apr 6, 2021 · 0 comments
Open

Variables placed outside a mixin are not properly compiled #322

tarekoraby opened this issue Apr 6, 2021 · 0 comments

Comments

@tarekoraby
Copy link

In Vaadin 8.13.0.beta1, variables that are used outside a mixin do not get properly compiled.

To reproduce, compile the following:

@import "../valo/valo.scss";

$custom-value: 500px;

@media only screen and (min-width: $custom-value) {
  .my-style {
    color: red;
    background-color: lightblue;
  }
}

@mixin mytheme {
  @include valo;

  // Insert your own theme rules here
}

The expected behavior is that the CSS should have $custom-value translated to 500px.
However, in reality, the CSS includes a faulty $custom-value)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant