From cfa620d18bffb6f9e6c75e3b4d2e81450dcaf897 Mon Sep 17 00:00:00 2001 From: Barbara Bothe Date: Wed, 25 Oct 2023 15:19:28 +0200 Subject: [PATCH] Bugfixes CSS --- includes/Columns/Columns.php | 8 ++++---- includes/Icon/Icon.php | 2 +- package.json | 2 +- rrze-elements.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/Columns/Columns.php b/includes/Columns/Columns.php index a0a8250e..bcac6596 100644 --- a/includes/Columns/Columns.php +++ b/includes/Columns/Columns.php @@ -84,17 +84,17 @@ public function shortcodeColumn($atts, $content = null){ $stylesArr = []; switch ($args['valign']) { case 'top': - $stylesArr[] = 'style="align-self: flex-start"'; + $stylesArr[] = 'align-self: flex-start'; break; case 'bottom': - $stylesArr[] = 'style="align-self: flex-end"'; + $stylesArr[] = 'align-self: flex-end'; break; case 'center': case 'middle': - $stylesArr[] = 'style="align-self: center"'; + $stylesArr[] = 'align-self: center'; break; case 'stretch': - $stylesArr[] = 'style="align-self: stretch"'; + $stylesArr[] = 'align-self: stretch'; break; } if ((str_starts_with($args['color'], '#')) && (in_array(strlen($args['color']), [4, 7]))) { diff --git a/includes/Icon/Icon.php b/includes/Icon/Icon.php index df3e56e3..454f44d2 100644 --- a/includes/Icon/Icon.php +++ b/includes/Icon/Icon.php @@ -67,7 +67,7 @@ public function shortcodeIcon($atts, $content = '', $tag = '') { } else { $CSSstyles[] = 'fill: currentcolor;'; } - $style = 'style="' . implode(' ', $CSSstyles) .'" '; + $style = ' style="' . implode(' ', $CSSstyles) .'" '; $output = str_replace('