aboutsummaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
authorTJ VanToll <tj.vantoll@gmail.com>2014-10-25 09:18:17 -0700
committerTJ VanToll <tj.vantoll@gmail.com>2014-10-25 10:10:30 -0700
commitde2ef2a585447cf75fc8d4a734c12aa2bbd028c2 (patch)
tree38f5491fedb4668ff8a55ea38934bf7f5561d777 /themes
parent3002d460de2b854243d99634e69d394dfca78886 (diff)
downloadjquery-ui-de2ef2a585447cf75fc8d4a734c12aa2bbd028c2.tar.gz
jquery-ui-de2ef2a585447cf75fc8d4a734c12aa2bbd028c2.zip
Menu: Wrap menu items in a <div>
This avoids styling issues where ui-state-focus rules apply to submenus. Fixes #10162 Closes gh-1342
Diffstat (limited to 'themes')
-rw-r--r--themes/base/menu.css8
1 files changed, 5 insertions, 3 deletions
diff --git a/themes/base/menu.css b/themes/base/menu.css
index 58c561349..dae8288a2 100644
--- a/themes/base/menu.css
+++ b/themes/base/menu.css
@@ -19,13 +19,15 @@
position: absolute;
}
.ui-menu .ui-menu-item {
- position: relative;
margin: 0;
- padding: 3px 1em 3px .4em;
cursor: pointer;
/* support: IE10, see #8844 */
list-style-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
}
+.ui-menu .ui-menu-item-wrapper {
+ position: relative;
+ padding: 3px 1em 3px .4em;
+}
.ui-menu .ui-menu-divider {
margin: 5px 0;
height: 0;
@@ -42,7 +44,7 @@
.ui-menu-icons {
position: relative;
}
-.ui-menu-icons .ui-menu-item {
+.ui-menu-icons .ui-menu-item-wrapper {
padding-left: 2em;
}