Skip to content

Commit 98f470a

Browse files
committed
fix(speed-dial): replace deprecated darken() with color.adjust()
Use sass:color module function to avoid Dart Sass 3.0 deprecation warning for global built-in darken().
1 parent 095da1e commit 98f470a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

components/speed-dial/style/_index.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use "../../style/variables" as *;
2+
@use "sass:color";
23

34
$speed-dial-fab-size: 56px;
45
$speed-dial-action-size: 40px;
@@ -26,7 +27,7 @@ $speed-dial-actions-gap: 16px;
2627
outline: none;
2728

2829
&:hover:not(.#{$prefix}-speed-dial__button_disabled) {
29-
background-color: var(--ty-speed-dial-bg-hover, #{darken($primary-color, 8%)});
30+
background-color: var(--ty-speed-dial-bg-hover, #{color.adjust($primary-color, $lightness: -8%)});
3031
}
3132

3233
&:focus-visible {

0 commit comments

Comments
 (0)