Skip to content

Commit

Permalink
Bugfixes CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
cassandre committed Oct 25, 2023
1 parent da7f913 commit cfa620d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions includes/Columns/Columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]))) {
Expand Down
2 changes: 1 addition & 1 deletion includes/Icon/Icon.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('<svg ', '<svg height="1em" width="1em" class="rrze-elements-icon"' . $style . $a11yTags, $svg);
//$output = str_replace('<svg ', '<svg ' . $style, $svg);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rrze-elements",
"version": "1.25.22",
"version": "1.25.23",
"description": "RRZE Elements: Gestalterische Erweiterungen für Webauftritte.",
"main": "rrze-elements.php",
"textdomain": "rrze-elements",
Expand Down
2 changes: 1 addition & 1 deletion rrze-elements.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: RRZE Elements
Plugin URI: https://github.com/RRZE-Webteam/rrze-elements
Description: Advanced design elements for WordPress websites.
Version: 1.25.22
Version: 1.25.23
Author: RRZE Webteam
Author URI: https://blogs.fau.de/webworking/
License: GNU General Public License v2
Expand Down

0 comments on commit cfa620d

Please sign in to comment.