Better handling of icons not in registry

This commit is contained in:
Johan Klintberg 2016-10-04 21:18:19 +02:00
parent 73317c059f
commit fd3bda950c
1 changed files with 3 additions and 0 deletions

View File

@ -12,5 +12,8 @@
}
@function mdi($name) {
@if map-has-key($mdi-icons, $name) == false {
@return "";
}
@return char(map-get($mdi-icons, $name));
}