File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 26
26
.ui-menu .ui-menu-item a {
27
27
text-decoration : none;
28
28
display : block;
29
- padding : .2 em .4em ;
29
+ padding : 2 px .4em ;
30
30
line-height : 1.5 ;
31
31
zoom : 1 ;
32
- }
33
- .ui-menu .ui-menu-item a {
34
32
font-weight : normal;
35
33
}
36
34
.ui-menu .ui-menu-item a .ui-state-focus ,
Original file line number Diff line number Diff line change @@ -237,6 +237,9 @@ $.widget("ui.menu", {
237
237
// need to remove the attribute before adding it for the screenreader to pick up the change
238
238
// see http://groups.google.com/group/jquery-a11y/msg/929e0c1e8c5efc8f
239
239
this . element . removeAttr ( "aria-activedescendant" ) . attr ( "aria-activedescendant" , self . itemId )
240
+
241
+ // highlight active parent menu item, if any
242
+ this . active . parent ( ) . closest ( ".ui-menu-item" ) . children ( "a:first" ) . addClass ( "ui-state-active" ) ;
240
243
241
244
self . timer = setTimeout ( function ( ) {
242
245
self . _close ( ) ;
@@ -285,8 +288,6 @@ $.widget("ui.menu", {
285
288
) ;
286
289
287
290
submenu . show ( ) . position ( position ) ;
288
-
289
- this . active . find ( ">a:first" ) . addClass ( "ui-state-active" ) ;
290
291
} ,
291
292
292
293
closeAll : function ( ) {
You can’t perform that action at this time.
0 commit comments