Buttons component : add tooltip

Note that we will do later on a pass on accessibility, so we might add as well a title attribute, or a aria-* attribute
This commit is contained in:
Pierre Goiffon
2020-12-01 18:34:22 +01:00
parent 14ac58b999
commit c701b518b8
2 changed files with 2 additions and 0 deletions

View File

@@ -307,6 +307,7 @@ class ButtonFactory
{
$oButton = static::MakeForAction('', Button::ENUM_COLOR_NEUTRAL, Button::ENUM_ACTION_TYPE_ALTERNATIVE, null, $sName, false, $sId);
$oButton->SetIconClass($sIconClasses);
$oButton->SetTooltip($sTooltipText);
if (!empty($sURL)) {
if (empty($sTarget)) {