Skip to content

Commit

Permalink
Fix page list missing button styles when set to open on click. (#36601)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Nov 19, 2021
1 parent e081de4 commit 1c62593
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 26 deletions.
25 changes: 0 additions & 25 deletions packages/block-library/src/navigation-submenu/style.scss

This file was deleted.

30 changes: 30 additions & 0 deletions packages/block-library/src/navigation/style.scss
Expand Up @@ -219,6 +219,36 @@
}
}

// General submenu colors.
// These styles are stored here as opposed to in the separate submenu block,
// so that they can affect both submenus and page lists with submenu items both.
.wp-block-navigation-submenu {
position: relative;
display: flex;

.wp-block-navigation__submenu-icon svg {
stroke: currentColor;
}
}

button.wp-block-navigation-item__content {
background-color: transparent;
border: none;
color: currentColor;
font-size: inherit;
font-family: inherit;
line-height: inherit;

// Buttons default to center alignment. This becomes visible
// when a menu item label is long enough to wrap.
text-align: left;
}

.wp-block-navigation-submenu__toggle {
cursor: pointer;
}


/**
* Margins
*/
Expand Down
1 change: 0 additions & 1 deletion packages/block-library/src/style.scss
Expand Up @@ -19,7 +19,6 @@
@import "./media-text/style.scss";
@import "./navigation/style.scss";
@import "./navigation-link/style.scss";
@import "./navigation-submenu/style.scss";
@import "./page-list/style.scss";
@import "./paragraph/style.scss";
@import "./post-author/style.scss";
Expand Down

0 comments on commit 1c62593

Please sign in to comment.