From fcc423097cec723682074b03d893c721aa93de60 Mon Sep 17 00:00:00 2001 From: laurelfulford Date: Mon, 31 Dec 2018 17:49:50 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@44376 git-svn-id: http://core.svn.wordpress.org/trunk@44206 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../twentynineteen/inc/template-functions.php | 22 +++++----- .../js/touch-keyboard-navigation.js | 6 ++- .../navigation/_menu-main-navigation.scss | 40 +++++++++++++++++++ .../themes/twentynineteen/style-rtl.css | 38 ++++++++++++++++++ wp-content/themes/twentynineteen/style.css | 38 ++++++++++++++++++ .../template-parts/header/site-branding.php | 2 +- wp-includes/version.php | 2 +- 7 files changed, 133 insertions(+), 15 deletions(-) diff --git a/wp-content/themes/twentynineteen/inc/template-functions.php b/wp-content/themes/twentynineteen/inc/template-functions.php index d7baff327c..2dbd0c5eba 100644 --- a/wp-content/themes/twentynineteen/inc/template-functions.php +++ b/wp-content/themes/twentynineteen/inc/template-functions.php @@ -203,18 +203,18 @@ function twentynineteen_add_ellipses_to_nav( $nav_menu, $args ) { if ( 'menu-1' === $args->theme_location ) : $nav_menu .= '