Merge pull request #12421 from nextcloud/bugfix/noid/icons-cacher-app-prefix
Prefix icon variables with app name to avoid conflicts
This commit is contained in:
commit
7baa67cafe
|
@ -66,7 +66,11 @@
|
||||||
*/
|
*/
|
||||||
@mixin icon-color($icon, $dir, $color, $version: 1, $core: false) {
|
@mixin icon-color($icon, $dir, $color, $version: 1, $core: false) {
|
||||||
$color: remove-hash-from-color($color);
|
$color: remove-hash-from-color($color);
|
||||||
|
/* $dir is the app name, so we add this to the icon var to avoid conflicts between apps */
|
||||||
|
$varName: "--icon-#{$dir}-#{$icon}-#{$color}";
|
||||||
|
@if $core {
|
||||||
$varName: "--icon-#{$icon}-#{$color}";
|
$varName: "--icon-#{$icon}-#{$color}";
|
||||||
|
}
|
||||||
#{$varName}: url(icon-color-path($icon, $dir, $color, $version, $core));
|
#{$varName}: url(icon-color-path($icon, $dir, $color, $version, $core));
|
||||||
background-image: var(#{$varName});
|
background-image: var(#{$varName});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue