Add title attribute to link-button - refs BT#11636

pull/2487/head
Angel Fernando Quiroz Campos 9 years ago committed by Yannick Warnier
parent de0320eb73
commit f43438ebf7
  1. 1
      main/inc/lib/display.lib.php

@ -2351,6 +2351,7 @@ class Display
$buttonClass = "btn btn-$type";
$icon = self::tag('i', null, ['class' => "fa fa-$icon fa-fw", 'aria-hidden' => 'true']);
$attributes['class'] = isset($attributes['class']) ? "$buttonClass {$attributes['class']}" : $buttonClass;
$attributes['title'] = isset($attributes['title']) ? $attributes['title'] : $text;
if (!$includeText) {
$text = '<span class="sr-only">' . $text . '</span>';

Loading…
Cancel
Save