Skip to content

Custom properties (--*): CSS variables #4

Closed
@moehoward

Description

@moehoward

Installed product versions

  • Visual Studio: [2022 Community]
  • This extension: [example 1.13.4]

Description

Compilation fails when a custom CSS properties uses a variable.

Steps to recreate

  1. Create a SCSS file.
  2. Create a style within a SCSS file that uses a custom CSS property with a variable.

Current behavior

The "variable name" rather than the "value" gets compiled into the CSS file.

Expected behavior

The CSS should display:
.my-class {
--mdc-theme-primary: #4caf50;
}

But instead displays:
.my-class {
--mdc-theme-primary: $medium-green;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions