Skip to content

Deprecated use of global unquote function in getRgbaVar() #4009

@ElteHupkes

Description

@ElteHupkes

The function getRgbaVar() in bulma/sass/utilities/css-variables.scss (current commit at the time of writing, current version in main) uses the function unquote() without the string. namespace:

@function getRgbaVar($name, $alpha, $prefix: "", $suffix: "") {
  $varName: buildVarName($name, $prefix, $suffix);
  @return unquote("rgba(var(#{$varName}), #{$alpha})");
}

This results in the following deprecation warning:

Deprecation Warning [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use string.unquote instead.

More info and automated migrator: https://sass-lang.com/d/import

   ╷
34 │   @return unquote("rgba(var(#{$varName}), #{$alpha})");
   │           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
    node_modules/bulma/sass/utilities/css-variables.scss 34:11       getRgbaVar()
    [....truncated....]

Bulma version: 1.0.4
SASS version: 1.86.3, but this likely occurs with 1.80.x and up.

I'm guessing this one was missed when #3948 and #3907 were addressed.

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