From d74fb20a28b16d9eaca39ca6b1c74d5777b505c7 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Thu, 24 Feb 2011 10:12:20 +0100 Subject: Menu: Replace ui-state-hover with ui-state-focus. More semantic, looks the same. --- ui/jquery.ui.menu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui') diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 579610405..346d1a982 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -136,7 +136,7 @@ $.widget("ui.menu", { } this.active = item.first() .children( "a" ) - .addClass( "ui-state-hover" ) + .addClass( "ui-state-focus" ) .attr( "id", function(index, id) { return (self.itemId = id || self.menuId + "-activedescendant"); }) @@ -153,7 +153,7 @@ $.widget("ui.menu", { } var self = this; - this.active.children( "a" ).removeClass( "ui-state-hover" ); + this.active.children( "a" ).removeClass( "ui-state-focus" ); // remove only generated id $( "#" + self.menuId + "-activedescendant" ).removeAttr( "id" ); this.element.removeAttr( "aria-activedescenant" ); -- cgit v1.2.3