|
201 | 201 | */ |
202 | 202 | &.is-destructive { |
203 | 203 | --wp-components-color-accent: #{$alert-red}; |
204 | | - --wp-components-color-accent-darker-10: #{color.scale($alert-red, $lightness: -10%)}; |
205 | | - --wp-components-color-accent-darker-20: #{color.scale($alert-red, $lightness: -20%)}; |
| 204 | + --wp-components-color-accent-darker-10: #{color.adjust($alert-red, $lightness: -10%)}; |
| 205 | + --wp-components-color-accent-darker-20: #{color.adjust($alert-red, $lightness: -20%)}; |
206 | 206 |
|
207 | 207 | // Only the default variant is styled differently from the non-destructive counterparts. |
208 | 208 | &:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link) { |
209 | 209 | color: $alert-red; |
210 | 210 |
|
211 | 211 | &:hover:not(:disabled, [aria-disabled="true"]) { |
212 | | - color: color.scale($alert-red, $lightness: -20%); |
| 212 | + color: color.adjust($alert-red, $lightness: -20%); |
213 | 213 | } |
214 | 214 |
|
215 | 215 | &:focus { |
|
294 | 294 | background-image: linear-gradient( |
295 | 295 | -45deg, |
296 | 296 | // TODO: Prepare for theming (https://github.com/WordPress/gutenberg/pull/45466/files#r1030872724) |
297 | | - color.scale($white, $lightness: -2%) 33%, |
298 | | - color.scale($white, $lightness: -12%) 33%, |
299 | | - color.scale($white, $lightness: -12%) 70%, |
300 | | - color.scale($white, $lightness: -2%) 70% |
| 297 | + color.adjust($white, $lightness: -2%) 33%, |
| 298 | + color.adjust($white, $lightness: -12%) 33%, |
| 299 | + color.adjust($white, $lightness: -12%) 70%, |
| 300 | + color.adjust($white, $lightness: -2%) 70% |
301 | 301 | ); |
302 | 302 | /* stylelint-enable */ |
303 | 303 | } |
|
0 commit comments