style former buttons without background-image, which are now just an et2-image with a more fitting height

preprocessor rewriting them adds class imageButton giving the image a height of 20px, like the image in buttons has
This commit is contained in:
ralf 2022-08-09 16:54:21 +02:00
parent 259bc4cd71
commit cb63269598
2 changed files with 8 additions and 0 deletions

View File

@ -318,6 +318,7 @@ function send_template()
{
$tag = 'et2-image';
$attrs['src'] = $attrs['image'];
$attrs['class'] = (!empty($attrs['class']) ? $attrs['class'].' ':'').'imageButton';
unset($attrs['image']);
// Was expected to submit. Images don't have noValidation, so add directly
if (!array_key_exists('onclick', $attrs) && empty($attrs['noSubmit']))

View File

@ -358,6 +358,13 @@ a.et2_url.url {
margin-left: 0px;
}
/**
* Former button without background_image --> <et2-image class="et2-image-button"
*/
et2-image.imageButton {
height: 20px;
vertical-align: middle;}
/**
* Button widget - text only, and icon
*/