Skip to content

Commit

Permalink
Add default border to the frontend
Browse files Browse the repository at this point in the history
The default attributes values are not saved.
See WordPress/gutenberg#7342
  • Loading branch information
renatho committed Nov 20, 2020
1 parent 08653b8 commit c2ef101
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -147,7 +147,7 @@ private function get_block_html_attributes( $class_name, $block_attributes ) : s
$class_names = [ 'wp-block-sensei-lms-course-outline-module', 'sensei-collapsible', $class_name ];
$inline_styles = [];

if ( ! empty( $block_attributes['bordered'] ) ) {
if ( ! isset( $block_attributes['bordered'] ) || true === $block_attributes['bordered'] ) {
$class_names[] = 'sensei-module-bordered';

if ( ! empty( $block_attributes['borderColorValue'] ) ) {
Expand Down

0 comments on commit c2ef101

Please sign in to comment.