From d74fb20a28b16d9eaca39ca6b1c74d5777b505c7 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Thu, 24 Feb 2011 10:12:20 +0100 Subject: [PATCH] Menu: Replace ui-state-hover with ui-state-focus. More semantic, looks the same. --- themes/base/jquery.ui.menu.css | 2 +- ui/jquery.ui.menu.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/base/jquery.ui.menu.css b/themes/base/jquery.ui.menu.css index f9516ac1f..1c868c366 100644 --- a/themes/base/jquery.ui.menu.css +++ b/themes/base/jquery.ui.menu.css @@ -32,7 +32,7 @@ .ui-menu .ui-menu-item a { font-weight: normal; } -.ui-menu .ui-menu-item a.ui-state-hover, +.ui-menu .ui-menu-item a.ui-state-focus, .ui-menu .ui-menu-item a.ui-state-active { font-weight: normal; margin: -1px; 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" ); -- 2.39.5