2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2024-10-28 14:33:59 +01:00
parent c52d779c1b
commit 838316418f
2 changed files with 15 additions and 2 deletions

View File

@@ -12706,9 +12706,9 @@ function dolGetButtonAction($label, $text = '', $actionType = 'default', $url =
if (empty($reshook)) {
if (dol_textishtml($text)) { // If content already HTML encoded
return '<' . $tag . ' ' . $compiledAttributes . '>' . $text . '</' . $tag . '>';
return '<' . $tag . ' ' . $compiledAttributes . '><span class="textbutton">' . $text . '</span></' . $tag . '>';
} else {
return '<' . $tag . ' ' . $compiledAttributes . '>' . dol_escape_htmltag($text) . '</' . $tag . '>';
return '<' . $tag . ' ' . $compiledAttributes . '><span class="textbutton">' . dol_escape_htmltag($text) . '</span></' . $tag . '>';
}
} else {
return $hookmanager->resPrint;

View File

@@ -164,6 +164,19 @@ span.butActionNewRefused>span.fa, span.butActionNewRefused>span.fa:hover
box-shadow: 0px 0px 6px 1px rgba(50, 50, 50, 0.4), 0px 0px 0px rgba(60,60,60,0.1);
}
/*
.butActionDelete#action-delete::before {
content: "\f1f8";
font-family: "<?php echo getDolGlobalString('MAIN_FONTAWESOME_FAMILY', 'Font Awesome 5 Free'); ?>";
font-weight: 600;
width: 20px;
visibility: visible;
}
.butActionDelete#action-delete span.textbutton {
display: none;
}
*/
.butActionRefused {
text-decoration: none !important;
text-transform: uppercase;