Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 590 Bytes

File metadata and controls

29 lines (26 loc) · 590 Bytes

Fix LESS/SCSS format error (#12536 by @fisker)

// Input
.background-gradient(@cut) {
    background: linear-gradient(
        to right,
        @white 0%,
        @white (@cut - 0.01%),
        @portal-background @cut,
        @portal-background 100%
    );
}

// Prettier stable
TypeError: Cannot read properties of undefined (reading 'endOffset')

// Prettier main
.background-gradient(@cut) {
  background: linear-gradient(
    to right,
    @white 0%,
    @white (@cut - 0.01%),
    @portal-background @cut,
    @portal-background 100%
  );
}