MDL-60373 core: Do not show title if there is no title
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 9 Oct 2017 03:38:00 +0000 (11:38 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 9 Oct 2017 03:38:00 +0000 (11:38 +0800)
lib/templates/pix_icon_fontawesome.mustache

index df700c5..7f95b6c 100644 (file)
@@ -43,7 +43,7 @@
 
 }}
 {{^unmappedIcon}}
-<i class="icon fa {{key}} fa-fw {{extraclasses}}" aria-hidden="true" title="{{title}}" aria-label="{{alt}}"></i>
+<i class="icon fa {{key}} fa-fw {{extraclasses}}" aria-hidden="true" {{#title}}title="{{title}}"{{/title}} aria-label="{{alt}}"></i>
 {{/unmappedIcon}}
 {{#unmappedIcon}}
 {{! We cannot include the pix_icon template directly here because we don't have all the mustache helpers loaded. }}