Bundled Themes: Twenty Nineteen long submenu item titles do not wrap.

Fixes the issue of long submenu item titles that do not wrap by adding a `max-width: 20rem;` and removing `white-space: nowrap;`.

Props kjellr, mukesh27, mohsinrasool, samful.
Fixes #45866.
Built from https://develop.svn.wordpress.org/trunk@48032


git-svn-id: http://core.svn.wordpress.org/trunk@47799 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ianbelanger 2020-06-12 15:11:08 +00:00
parent 4cc11cdbdd
commit 232277586f
3 changed files with 3 additions and 3 deletions

View File

@ -205,7 +205,7 @@
line-height: $font__line-height-heading;
text-shadow: none;
padding: calc( .5 * #{$size__spacing-unit} ) calc( 24px + #{$size__spacing-unit} ) calc( .5 * #{$size__spacing-unit} ) $size__spacing-unit;
white-space: nowrap;
max-width: #{20 * $size__spacing-unit};
&:hover,
&:focus {

View File

@ -2958,7 +2958,7 @@ body.page .main-navigation {
line-height: 1.2;
text-shadow: none;
padding: calc( .5 * 1rem) calc( 24px + 1rem) calc( .5 * 1rem) 1rem;
white-space: nowrap;
max-width: 20rem;
}
.main-navigation .sub-menu > li > a:hover, .main-navigation .sub-menu > li > a:focus,

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-alpha-48031';
$wp_version = '5.5-alpha-48032';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.