From 03fbbf84fd9e52c582404428b714a46bf90119eb Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Wed, 14 May 2014 22:12:26 -0400 Subject: [PATCH 1/2] Adjust dropdown menu styles so they work with screen readers and align with Twenty Fourteen techniques. --- style.css | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/style.css b/style.css index c8c9209f..e27af83e 100644 --- a/style.css +++ b/style.css @@ -382,15 +382,14 @@ a:active { } .main-navigation ul ul { box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); - display: none; float: left; - left: 0; + left: -999em; position: absolute; top: 1.5em; z-index: 99999; } .main-navigation ul ul ul { - left: 100%; + left: -999em; top: 0; } .main-navigation ul ul a { @@ -405,7 +404,10 @@ a:active { .main-navigation ul ul a:hover { } .main-navigation ul li:hover > ul { - display: block; + left: auto; +} +.main-navigation ul ul li:hover > ul { + left: 100%; } .main-navigation .current_page_item a, .main-navigation .current-menu-item a { From f8c52a811401ae4fa4b5f0fa2db2f94fb533438b Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Sat, 24 May 2014 13:30:50 -0400 Subject: [PATCH 2/2] Change position for left to match WordPress CSS standards. --- style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/style.css b/style.css index 91e8742e..3d82539a 100644 --- a/style.css +++ b/style.css @@ -383,9 +383,9 @@ a:active { .main-navigation ul ul { box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); float: left; - left: -999em; position: absolute; top: 1.5em; + left: -999em; z-index: 99999; } .main-navigation ul ul ul {