Skip to content

Commit

Permalink
Allow wrapping for Navigation block links (#21632)
Browse files Browse the repository at this point in the history
* Allow wrapping for links

* Improve submenu indicator styling

* Switch to non-deprecated styles

* Revert "Improve submenu indicator styling"

This reverts commit a85eb79.
  • Loading branch information
talldan authored Apr 17, 2020
1 parent 5c56b60 commit 10e19e0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/block-library/src/navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,16 @@
.wp-block-navigation-link__content {
padding: $grid-unit-10 * 0.75 $grid-unit-10 * 2;

@include break-small {
width: max-content;
}

.has-text-color & {
color: inherit;
}
}

.wp-block-navigation-link__label {
word-break: normal;
overflow-wrap: break-word;
}

.wp-block-navigation-link__submenu-icon {
padding: $grid-unit-10 * 0.75 $grid-unit-10 * 2;

Expand Down

0 comments on commit 10e19e0

Please sign in to comment.