if ( isset( $attributes['layout'
]['flexWrap'
] ) && 'nowrap' ===
$attributes['layout'
]['flexWrap'
] ) { $layout_class .= ' no-wrap';
} // Manually add block support text decoration as CSS class.
$text_decoration =
_wp_array_get( $attributes, array
( 'style', 'typography', 'textDecoration'
), null
);
$text_decoration_class =
sprintf( 'has-text-decoration-%s',
$text_decoration );
$colors =
block_core_navigation_build_css_colors( $attributes );
$font_sizes =
block_core_navigation_build_css_font_sizes( $attributes );
$classes =
array_merge( $colors['css_classes'
],
$font_sizes['css_classes'
],
$is_responsive_menu ? array
( 'is-responsive'
) : array
(),
$layout_class ? array
( $layout_class ) : array
(),
$is_fallback ? array
( 'is-fallback'
) : array
(),
$text_decoration ? array
( $text_decoration_class ) : array
() );
$post_ids =
block_core_navigation_get_post_ids( $inner_blocks );
if ( $post_ids ) {