Răsfoiți Sursa

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

Angel Fernando Quiroz Campos 8 ani în urmă
părinte
comite
f43438ebf7
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      main/inc/lib/display.lib.php

+ 1 - 0
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>';