Skip to content

Commit

Permalink
Update class-kadence-blocks-header-block.php
Browse files Browse the repository at this point in the history
  • Loading branch information
oakesjosh committed Feb 22, 2024
1 parent f60e241 commit b2fcc49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/blocks/class-kadence-blocks-header-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ public function build_html( $attributes, $unique_id, $content, $block_instance )
// $nav_attributes = json_decode( json_encode( $nav_attributes ), true );

$name = ! empty( $attributes['name'] ) ? $attributes['name'] : '';
$outer_classes = array( 'wp-block-kadence-header' . $unique_id );
$wrapper_attributes = get_block_wrapper_attributes(
array(
'class' => 'kb-block-navigation',
'class' => implode( ' ', $outer_classes ),
'aria-label' => $name,
)
);
Expand Down

0 comments on commit b2fcc49

Please sign in to comment.