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
1 changed files with 5 additions and 1 deletions
|
@ -66,7 +66,11 @@
|
|||
*/
|
||||
@mixin icon-color($icon, $dir, $color, $version: 1, $core: false) {
|
||||
$color: remove-hash-from-color($color);
|
||||
$varName: "--icon-#{$icon}-#{$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}: url(icon-color-path($icon, $dir, $color, $version, $core));
|
||||
background-image: var(#{$varName});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue