Skip to content

Commit

Permalink
Fix sass deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
plegner committed Nov 12, 2024
1 parent 4e36a41 commit 707ac61
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// =============================================================================


@use 'sass:color';
@import './mixins';

$success: #22ab24 !default;
Expand Down Expand Up @@ -35,9 +36,9 @@ x-alert {
width: max-content;

x-icon { margin: -2px 6px 20px -4px; float: left; }
&.error { background: darken($error, 5%); }
&.warn { background: darken($warn, 5%); }
&.success { background: darken($success, 5%); }
&.error { background: color.adjust($error, $lightness: -5%); }
&.warn { background: color.adjust($warn, $lightness: -5%); }
&.success { background: color.adjust($success, $lightness: -5%); }
}

// Icons -----------------------------------------------------------------------
Expand Down

0 comments on commit 707ac61

Please sign in to comment.