dizaster
dizaster

Reputation: 79

Variable instead class in Sass mixin

Get error: expected ':' after $selector in assignment statement

@mixin clip-path ($selector, $color)
  @supports (display: flex)
    $selector
      background: $color
      display: flex

Upvotes: 1

Views: 357

Answers (1)

leusrox
leusrox

Reputation: 2385

No need use $selector, just:

@mixin clip-path ($color)
  @supports (display: flex)
    background: $color
    display: flex

Upvotes: 1

Related Questions