Make WordPress Core

Changeset 48032


Ignore:
Timestamp:
06/12/2020 03:09:35 PM (6 years ago)
Author:
ianbelanger
Message:

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.

Location:
trunk/src/wp-content/themes/twentynineteen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/sass/navigation/_menu-main-navigation.scss

    r46587 r48032  
    206206                                text-shadow: none;
    207207                                padding: calc( .5 * #{$size__spacing-unit} ) calc( 24px + #{$size__spacing-unit} ) calc( .5 * #{$size__spacing-unit} ) $size__spacing-unit;
    208                                 white-space: nowrap;
     208                                max-width: #{20 * $size__spacing-unit};
    209209
    210210                                &:hover,
  • trunk/src/wp-content/themes/twentynineteen/style.css

    r47952 r48032  
    29592959  text-shadow: none;
    29602960  padding: calc( .5 * 1rem) calc( 24px + 1rem) calc( .5 * 1rem) 1rem;
    2961   white-space: nowrap;
     2961  max-width: 20rem;
    29622962}
    29632963
Note: See TracChangeset for help on using the changeset viewer.