aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2011-02-24 10:12:20 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2011-02-24 10:12:20 +0100
commitd74fb20a28b16d9eaca39ca6b1c74d5777b505c7 (patch)
tree9bebc8eb63c569b1d462b31756b6b7bbdcabdf9d
parent3f353cc8fb8a3b27452e29d81af3105734da7aa1 (diff)
downloadjquery-ui-d74fb20a28b16d9eaca39ca6b1c74d5777b505c7.tar.gz
jquery-ui-d74fb20a28b16d9eaca39ca6b1c74d5777b505c7.zip
Menu: Replace ui-state-hover with ui-state-focus. More semantic, looks
the same.
-rw-r--r--themes/base/jquery.ui.menu.css2
-rw-r--r--ui/jquery.ui.menu.js4
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" );