From de2ef2a585447cf75fc8d4a734c12aa2bbd028c2 Mon Sep 17 00:00:00 2001 From: TJ VanToll Date: Sat, 25 Oct 2014 09:18:17 -0700 Subject: [PATCH] Menu: Wrap menu items in a
This avoids styling issues where ui-state-focus rules apply to submenus. Fixes #10162 Closes gh-1342 --- demos/menu/categories.html | 16 +- demos/menu/default.html | 40 +-- demos/menu/icons.html | 38 ++- tests/unit/menu/menu.html | 397 ++++++++++++++------------- tests/unit/menu/menu_common.js | 2 +- tests/unit/menu/menu_core.js | 7 +- tests/unit/menu/menu_events.js | 24 +- tests/unit/menu/menu_methods.js | 5 +- tests/unit/menu/menu_options.js | 18 +- tests/unit/menu/menu_test_helpers.js | 4 +- tests/visual/menu/menu.html | 357 +++++++++++++----------- themes/base/menu.css | 8 +- ui/menu.js | 62 +++-- 13 files changed, 543 insertions(+), 435 deletions(-) diff --git a/demos/menu/categories.html b/demos/menu/categories.html index c0e55d05a..213e97a4e 100644 --- a/demos/menu/categories.html +++ b/demos/menu/categories.html @@ -25,14 +25,14 @@
diff --git a/demos/menu/default.html b/demos/menu/default.html index 6da41e016..6c23c4e22 100644 --- a/demos/menu/default.html +++ b/demos/menu/default.html @@ -22,38 +22,38 @@
diff --git a/demos/menu/icons.html b/demos/menu/icons.html index bd1de828e..1afdba5e1 100644 --- a/demos/menu/icons.html +++ b/demos/menu/icons.html @@ -22,20 +22,38 @@
diff --git a/tests/unit/menu/menu.html b/tests/unit/menu/menu.html index cb3df5b00..56115c334 100644 --- a/tests/unit/menu/menu.html +++ b/tests/unit/menu/menu.html @@ -33,7 +33,7 @@ font-size: 15px; line-height: 15px; } - .ui-menu .ui-menu-item { + .ui-menu .ui-menu-item-wrapper { padding: 0; } #menu3 { @@ -52,263 +52,284 @@