Skip to content
This repository was archived by the owner on Jul 17, 2026. It is now read-only.
This repository was archived by the owner on Jul 17, 2026. It is now read-only.

Using generated mixin creates a deprecation warning #17

Description

@RVledder

Using the tool on the website generates:

@mixin text-crop(...) {
  // ...
  $dynamic-top-crop: max(($top-crop + ($line-height - $crop-line-height) * ($crop-font-size / 2)), 0) / $crop-font-size;
  $dynamic-bottom-crop: max(($bottom-crop + ($line-height - $crop-line-height) * ($crop-font-size / 2)), 0) / $crop-font-size;
  // ...

Using this code will generate:

DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.

source: https://sass-lang.com/documentation/breaking-changes/slash-div

Recommended is to "...switch all division to use math.div() instead."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions