Make WordPress Core

11/16/2018 12:13:32 AM (6 years ago)

Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.

This update changes the following:

  • Improve menu UI to support keyboard navigation in both directions
  • Improve more-menu-link visibility when no menu items are hidden
  • Improve text-selection custom colors for better contrast and legibility
  • Improve support for sticky toolbars in the editor
  • Improve table element fonts
  • Add .button class support
  • Remove translation escaping
  • Fix menu JS to prevent unused touched event listeners
  • Fix duplicate more-menu-link issue on selective refresh in the customizer
  • Fix editor font-weights for headings
  • Fix search form input style
  • Fix nested blockquote styles
  • Fix download block button style when download text stretches more than one line
  • Fix audio block centering issue
  • Fix align-full blocks in the editor so they don’t create horizontal scrollbars
  • Fix editor to prevent Gutenberg's meta boxes area from overlapping the content

Initial development occurred on GitHub. See:

Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, aaronjorbin, ntwb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins12, peterwilsoncc, DannyCooper, WPprodigy, siriokun, briannaorg, 00travelgirl00, shahjehanali1, ianbelanger79, nadim1992, Ismail-elkorchi, nativeinside, iamchetanp, grappler, ocean90, joshfeck, frankew, abdulwahab610, mendezcode, eliorivero, melchoyce, jasmussen, laurelfulford, mdawaffe, kraftbj, dereksmart, naokomc, mayukojpn, enodekciw, chetansatasiya, ketuchetan, atanas-angelov-dev, carolinan, sharazghouri, artisan-asad, mukeshpanchal27, mukesh27, burhandodhy, @crunnells, aryaprakasa, tlxo, themeroots, whizbangik, yingles, tlxo, youthkee, brentswisher, smy315, ahmadawais, desi-developer, 2ndkauboy, mor10.

1 edited


  • branches/5.0/src/wp-content/themes/twentynineteen/inc/template-functions.php

    r43892 r43904  
    206206    if ( 'menu-1' === $args->theme_location ) :
    208         $nav_menu .= '<div class="main-menu-more"   >';
     208        $nav_menu .= '<div class="main-menu-more">';
    209209        $nav_menu .= '<ul class="main-menu" tabindex="0">';
    210210        $nav_menu .= '<li class="menu-item menu-item-has-children">';
    211         $nav_menu .= '<a href="#" class="screen-reader-text" aria-label="More" aria-haspopup="true" aria-expanded="false">' . esc_html( 'More', 'twentynineteen' ) . '</a>';
    212         $nav_menu .= '<span class="submenu-expand main-menu-more-toggle" tabindex="-1">';
     211        $nav_menu .= '<a href="#" class="screen-reader-text" aria-label="More" aria-haspopup="true" aria-expanded="false">' . esc_html__( 'More', 'twentynineteen' ) . '</a>';
     212        $nav_menu .= '<span class="submenu-expand main-menu-more-toggle is-empty" tabindex="-1">';
    213213        $nav_menu .= twentynineteen_get_icon_svg( 'arrow_drop_down_ellipsis' );
    214214        $nav_menu .= '</span>';
    215         $nav_menu .= '<ul class="sub-menu hidden-links is-hidden">';
     215        $nav_menu .= '<ul class="sub-menu hidden-links">';
    216216        $nav_menu .= '<li id="menu-item--1" class="mobile-parent-nav-menu-item menu-item--1">';
    217         $nav_menu .= '<a class="menu-item-link-return" id="menu-item-link-return-1877" href="#menu-item-link-1877" onclick="event.preventDefault();" tabindex="-1">';
     217        $nav_menu .= '<span class="menu-item-link-return">';
    218218        $nav_menu .= twentynineteen_get_icon_svg( 'chevron_left' );
    219219        $nav_menu .= esc_html__( 'Back', 'twentynineteen' );
    220         $nav_menu .= '</a>';
     220        $nav_menu .= '</span>';
    221221        $nav_menu .= '</li>';
    222222        $nav_menu .= '</ul>';
Note: See TracChangeset for help on using the changeset viewer.