Skip to content

Commit

Permalink
Merge pull request #623 from stellarwp/bugfix/KAD-3690
Browse files Browse the repository at this point in the history
bugfix/KAD-3690
  • Loading branch information
oakesjosh authored Dec 4, 2024
2 parents b58ac4e + fd73db4 commit dfe14da
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions includes/blocks/class-kadence-blocks-icon-list-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ public function build_css( $attributes, $css, $unique_id, $unique_style_id ) {
}
if( isset( $attributes['borderWidth'] ) ) {
$css->add_property( 'border-width', $attributes['borderWidth'] . 'px' );
} else {
$css->add_property( 'border-width', '0px' );
}
$css->add_property( 'border-style', 'solid' );

Expand Down
7 changes: 6 additions & 1 deletion src/blocks/iconlist/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import {
ResponsiveMeasureRangeControl,
SpacingVisualizer,
CopyPasteAttributes,
RangeControl,
} from '@kadence/components';

/**
Expand Down Expand Up @@ -65,7 +66,6 @@ import {
import { useEffect, useState, Fragment, Platform, forwardRef } from '@wordpress/element';

import {
RangeControl,
ButtonGroup,
Tooltip,
Button,
Expand Down Expand Up @@ -448,6 +448,7 @@ function KadenceIconLists(props) {
}}
min={0}
max={60}
reset={true}
/>
<div className="kt-btn-size-settings-container">
<h2 className="kt-beside-btn-group">
Expand Down Expand Up @@ -540,6 +541,7 @@ function KadenceIconLists(props) {
step={0.5}
min={0.5}
max={4}
reset={true}
/>
)}
<PopColorControl
Expand Down Expand Up @@ -587,6 +589,7 @@ function KadenceIconLists(props) {
}}
min={0}
max={20}
reset={true}
/>
</>
)}
Expand All @@ -599,6 +602,7 @@ function KadenceIconLists(props) {
}}
min={0}
max={50}
reset={true}
/>
)}
{style === 'stacked' && (
Expand All @@ -610,6 +614,7 @@ function KadenceIconLists(props) {
}}
min={0}
max={180}
reset={true}
/>
)}
</KadencePanelBody>
Expand Down
6 changes: 4 additions & 2 deletions src/blocks/iconlist/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@
border-bottom-width: 0px;
}
.kt-svg-icon-list-style-stacked .kt-svg-icon-list-single {
border: 0px solid transparent;
border-style: solid;
border-width: 0px;
}
.kb-icon-list-style-stacked .kt-svg-icon-list-single {
border: 0px solid transparent;
border-style: solid;
border-width: 0px;
}
/* Remove padding from innerblocks */
.kt-svg-icon-list-container .block-editor-block-list__layout .wp-block {
Expand Down
3 changes: 2 additions & 1 deletion src/blocks/iconlist/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@
justify-content: center;
}
.kt-svg-icon-list-style-stacked .kt-svg-icon-list-single {
border: 0px solid transparent;
border-style: solid;
border-width: 0;
}
.kt-svg-icon-list-columns-2 ul.kt-svg-icon-list {
grid-template-columns: repeat(2, minmax(0, 1fr));
Expand Down

0 comments on commit dfe14da

Please sign in to comment.