Fix broken colors in some themed SVGs in web UI (#34988)
This commit is contained in:
parent
1bf8a642f0
commit
1824b1fd29
2 changed files with 10 additions and 8 deletions
|
|
@ -1,4 +1,6 @@
|
|||
@use 'sass:color';
|
||||
@use 'sass:string';
|
||||
@use 'sass:meta';
|
||||
|
||||
$darken-multiplier: -1 !default;
|
||||
$lighten-multiplier: 1 !default;
|
||||
|
|
@ -19,3 +21,11 @@ $lighten-multiplier: 1 !default;
|
|||
$space: hsl
|
||||
);
|
||||
}
|
||||
|
||||
@function hex-color($color) {
|
||||
@if meta.type-of($color) == 'color' {
|
||||
$color: string.slice(color.ie-hex-str($color), 4);
|
||||
}
|
||||
|
||||
@return '%23' + string.unquote($color);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue