Skip to content

fix(scss): deprecation errors after color changes - #935

Merged
eszthoff merged 1 commit into
masterfrom
fix-deprecation-errors-after-color-changes
Apr 3, 2023
Merged

fix(scss): deprecation errors after color changes#935
eszthoff merged 1 commit into
masterfrom
fix-deprecation-errors-after-color-changes

Conversation

@eszthoff

@eszthoff eszthoff commented Apr 3, 2023

Copy link
Copy Markdown
Contributor

Fix for deprecation warning in tests:

DEPRECATION WARNING: $weight: Passing a number without unit % (50) is deprecated.

To preserve current behavior: $weight * 1%

More info: https://sass-lang.com/d/function-units

   ╷
73 │               --color-#{ $context }-#{ 50 - math.div($factor, 2) }: #{mix(
   │ ┌─────────────────────────────────────────────────────────────────────^
74 │ │                 $color-background,
75 │ │                 $value,
76 │ │                 $factor
77 │ │             )};
   │ └─────────────^
   ╵
    src/themes/oneui/base-variables/_colors.scss 73:69  @import
    src/themes/oneui/oneui.scss 1:9                     @import
    src/components/Dialogs/Dialog/Dialog.scss 1:9       root stylesheet

@eszthoff
eszthoff merged commit 8b2eac5 into master Apr 3, 2023
@eszthoff
eszthoff deleted the fix-deprecation-errors-after-color-changes branch April 3, 2023 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants