]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: Replace ui-state-hover with ui-state-focus. More semantic, looks
authorjzaefferer <joern.zaefferer@gmail.com>
Thu, 24 Feb 2011 09:12:20 +0000 (10:12 +0100)
committerjzaefferer <joern.zaefferer@gmail.com>
Thu, 24 Feb 2011 09:12:20 +0000 (10:12 +0100)
the same.

themes/base/jquery.ui.menu.css
ui/jquery.ui.menu.js

index f9516ac1f7515b485c51d038fd2e2ccab6f42648..1c868c36626f04b561b486b717df79582437bbb5 100644 (file)
@@ -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;
index 579610405a9c55e6f6a9331729ce1b962e4e178e..346d1a98210d48807ed60bee9cc2d3b0a4293543 100644 (file)
@@ -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" );