Skip to content

Commit

Permalink
[ Navigation ] Adds orientation class on front for navigation (#22272)
Browse files Browse the repository at this point in the history
* adds orientation class on front for navigation

* Update packages/block-library/src/navigation/index.php

Co-authored-by: Daniel Richards <[email protected]>

* removes empty space in class names

* removes unused variable

Co-authored-by: Daniel Richards <[email protected]>
  • Loading branch information
draganescu and talldan authored May 15, 2020
1 parent 904c855 commit ed46a29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ function render_block_core_navigation( $content, $block ) {
$font_sizes['css_classes'],
array( 'wp-block-navigation' ),
isset( $attributes['className'] ) ? array( $attributes['className'] ) : array(),
( isset( $attributes['orientation'] ) && 'vertical' === $attributes['orientation'] ) ? array( 'is-vertical' ) : array(),
isset( $attributes['itemsJustification'] ) ? array( 'items-justified-' . $attributes['itemsJustification'] ) : array(),
isset( $attributes['align'] ) ? array( 'align' . $attributes['align'] ) : array()
);
Expand Down

0 comments on commit ed46a29

Please sign in to comment.