Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / themes / contrib / bootstrap / templates / input / input--button.html.twig
index 4272b24a88e7355b3d6a24d78ca61dec2f8759af..7166b1a56e4ed542ea8350c69752b3428a88bae9 100644 (file)
@@ -31,7 +31,7 @@
     ]
   %}
   {% block input %}
-    {% if icon_only %}
+    {% if icon and icon_only %}
       <button{{ attributes.addClass(classes, 'icon-only') }}>
         <span class="sr-only">{{ label }}</span>
         {{ icon }}