Skip to content

Commit

Permalink
change open button modifier classname
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicente Canales committed Oct 12, 2021
1 parent 937b224 commit 7f7fa4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ function render_block_core_navigation( $attributes, $content, $block ) {
);
$open_button_classes = array(
'wp-block-navigation__responsive-container-open',
$is_hidden_by_default ? 'always-on' : '',
$is_hidden_by_default ? 'always-shown' : '',
);

$responsive_container_markup = sprintf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function ResponsiveWrapper( {
);
const openButtonClasses = classnames(
'wp-block-navigation__responsive-container-open',
{ 'always-on': isHiddenByDefault }
{ 'always-shown': isHiddenByDefault }
);

const modalId = `${ id }-modal`;
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@
.wp-block-navigation__responsive-container-open {
display: flex;

&:not(.always-on) {
&:not(.always-shown) {
@include break-small {
display: none;
}
Expand Down

0 comments on commit 7f7fa4f

Please sign in to comment.