Skip to content

Commit d74fb20

Browse files
committed
Menu: Replace ui-state-hover with ui-state-focus. More semantic, looks
the same.
1 parent 3f353cc commit d74fb20

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

themes/base/jquery.ui.menu.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
.ui-menu .ui-menu-item a {
3333
font-weight: normal;
3434
}
35-
.ui-menu .ui-menu-item a.ui-state-hover,
35+
.ui-menu .ui-menu-item a.ui-state-focus,
3636
.ui-menu .ui-menu-item a.ui-state-active {
3737
font-weight: normal;
3838
margin: -1px;

ui/jquery.ui.menu.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ $.widget("ui.menu", {
136136
}
137137
this.active = item.first()
138138
.children( "a" )
139-
.addClass( "ui-state-hover" )
139+
.addClass( "ui-state-focus" )
140140
.attr( "id", function(index, id) {
141141
return (self.itemId = id || self.menuId + "-activedescendant");
142142
})
@@ -153,7 +153,7 @@ $.widget("ui.menu", {
153153
}
154154

155155
var self = this;
156-
this.active.children( "a" ).removeClass( "ui-state-hover" );
156+
this.active.children( "a" ).removeClass( "ui-state-focus" );
157157
// remove only generated id
158158
$( "#" + self.menuId + "-activedescendant" ).removeAttr( "id" );
159159
this.element.removeAttr( "aria-activedescenant" );

0 commit comments

Comments
 (0)