Skip to content

Commit

Permalink
Match front end and back end borders
Browse files Browse the repository at this point in the history
  • Loading branch information
oakesjosh committed Dec 4, 2024
1 parent d7166ea commit b15b98e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 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
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 b15b98e

Please sign in to comment.