Make WordPress Core


Ignore:
Timestamp:
12/31/2018 05:48:08 PM (6 years ago)
Author:
laurelfulford
Message:

Twenty Nineteen: Improve menu semantics and keyboard navigation.

The menu's original markup included some non-semantic tags and an unnecessary tabindex attribute that made it difficult to navigate via keyboard.

Props allancole, anevins, kjellr.
Fixes #45713.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/template-parts/header/site-branding.php

    r44149 r44376  
    3737                    'theme_location' => 'menu-1',
    3838                    'menu_class'     => 'main-menu',
    39                     'items_wrap'     => '<ul id="%1$s" class="%2$s" tabindex="0">%3$s</ul>',
     39                    'items_wrap'     => '<ul id="%1$s" class="%2$s">%3$s</ul>',
    4040                )
    4141            );
Note: See TracChangeset for help on using the changeset viewer.