File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
projects/igniteui-angular/src/lib/core/styles/base/utilities Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 349
349
/// // }
350
350
/// // otherwise, it will return the value for key 'icon-color' in the '$avatar-theme';
351
351
/// @returns {String} - The value of the key in the passed map, or the name of key concatenated with the key name.
352
- @function --var ($map , $key , $fallback : ' ' ) {
352
+ @function --var ($map , $key , $fallback : null ) {
353
353
$igx-legacy-support : if (global-variable-exists (' igx-legacy-support' ), $igx-legacy-support , true );
354
354
355
355
@if map-has-key ($map , $key ) {
356
356
@if $igx-legacy-support == false {
357
- @return unquote (' var(--#{map-get ($map , ' name' )} -#{$key } , #{$fallback } )' );
357
+ @if not ($fallback ) {
358
+ @return unquote (' var(--#{map-get ($map , ' name' )} -#{$key } )' )
359
+ }
360
+ @return unquote (' var(--#{map-get ($map , ' name' )} -#{$key } , #{$fallback } )' )
358
361
} @else {
359
362
@return map-get ($map , $key );
360
363
}
You can’t perform that action at this time.
0 commit comments