Skip to content

Commit 1364657

Browse files
Replace deprecated color functions
1 parent 55dc8e7 commit 1364657

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/css/components/_edit_overlay.scss

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

34
.edit-overlay {
@@ -79,7 +80,7 @@
7980
border: 2px solid $color-red;
8081

8182
&:hover {
82-
background-color: darken($color-red, 5%);
83+
background-color: color.adjust($color-red, $lightness: -5%);
8384
color: $color-white;
8485
}
8586
}

src/css/components/ui/panels/_legacy.scss

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

34
.cld-panel {
@@ -101,7 +102,7 @@
101102
padding: 1.5rem;
102103

103104
&-success {
104-
background-color: transparentize($color-notification-success, 0.8);
105+
background-color: color.adjust($color-notification-success, $alpha: -0.8);
105106
border: 2px solid $color-notification-success;
106107

107108
&::before {
@@ -110,7 +111,7 @@
110111
}
111112

112113
&-syncing {
113-
background-color: transparentize($color-wp-blue, 0.8);
114+
background-color: color.adjust($color-wp-blue, $alpha: -0.8);
114115
border: 2px solid $color-wp-blue;
115116
text-decoration: none;
116117
color: #444;

0 commit comments

Comments
 (0)