Issue #1324 new

SCSS Hex Color gets labeled as Name Namespace

Stacy Kvernmo
created an issue

A hex color gets the Literal Number Hex .mh class when used as a variable value, but in a mixin or even plain css block, it gets tagged as a Name Namespace .nn class

nn-vs-mh-hexcolor.jpg

Starting to wonder if I should include code snippets that would make it easy to copy/paste:

    $color: #ffffff;

    .sample {
      color: #000000;
    }

    @mixin button($bgcolor: green) {
      @if ($bgcolor == green) {
        background-color: #008000;
      }
    }

Comments (0)

  1. Log in to comment