diff options
author | Lisa Seacat DeLuca <ldeluca@us.ibm.com> | 2014-11-03 12:08:06 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2014-11-03 13:40:58 -0500 |
commit | 2500bb39c2af32770944488aa9c4bb45e8c305fa (patch) | |
tree | 1e674cd233ce2e6c40a05b4e8dede857735b2fe1 | |
parent | e9643f6bfc922773e29e3084e64de0240b547f32 (diff) | |
download | jquery-ui-2500bb39c2af32770944488aa9c4bb45e8c305fa.tar.gz jquery-ui-2500bb39c2af32770944488aa9c4bb45e8c305fa.zip |
Theme: Carat should be named caret
Fixes #10683
Closes gh-1382
-rw-r--r-- | tests/unit/menu/menu_common.js | 2 | ||||
-rw-r--r-- | tests/unit/menu/menu_options.js | 2 | ||||
-rw-r--r-- | tests/unit/spinner/spinner_options.js | 8 | ||||
-rw-r--r-- | tests/visual/menu/menu.html | 2 | ||||
-rw-r--r-- | themes/base/theme.css | 20 | ||||
-rw-r--r-- | ui/menu.js | 12 |
6 files changed, 23 insertions, 23 deletions
diff --git a/tests/unit/menu/menu_common.js b/tests/unit/menu/menu_common.js index 2404ebe02..ae0ab9887 100644 --- a/tests/unit/menu/menu_common.js +++ b/tests/unit/menu/menu_common.js @@ -2,7 +2,7 @@ TestHelpers.commonWidgetTests( "menu", { defaults: { disabled: false, icons: { - submenu: "ui-icon-carat-1-e" + submenu: "ui-icon-caret-1-e" }, items: "> *", menus: "ul", diff --git a/tests/unit/menu/menu_options.js b/tests/unit/menu/menu_options.js index 438b02a32..3b71037e8 100644 --- a/tests/unit/menu/menu_options.js +++ b/tests/unit/menu/menu_options.js @@ -43,7 +43,7 @@ test( "{ disabled: false }", function() { test( "{ icons: default }", function() { expect( 2 ); var element = $( "#menu2" ).menu(); - equal( element.find( ".ui-menu-icon" ).attr( "class" ), "ui-menu-icon ui-icon ui-icon-carat-1-e" ); + equal( element.find( ".ui-menu-icon" ).attr( "class" ), "ui-menu-icon ui-icon ui-icon-caret-1-e" ); element.menu( "option", "icons.submenu", "ui-icon-triangle-1-e" ); equal( element.find( ".ui-menu-icon" ).attr( "class" ), "ui-menu-icon ui-icon ui-icon-triangle-1-e" ); diff --git a/tests/unit/spinner/spinner_options.js b/tests/unit/spinner/spinner_options.js index 6f3650f92..65bbd2602 100644 --- a/tests/unit/spinner/spinner_options.js +++ b/tests/unit/spinner/spinner_options.js @@ -11,11 +11,11 @@ test( "icons: default ", function() { equal( element.spinner( "widget" ).find( ".ui-icon:last" ).attr( "class" ), "ui-icon ui-icon-triangle-1-s" ); element.spinner( "option", "icons", { - up: "ui-icon-carat-1-n", - down: "ui-icon-carat-1-s" + up: "ui-icon-caret-1-n", + down: "ui-icon-caret-1-s" }); - equal( element.spinner( "widget" ).find( ".ui-icon:first" ).attr( "class" ), "ui-icon ui-icon-carat-1-n" ); - equal( element.spinner( "widget" ).find( ".ui-icon:last" ).attr( "class" ), "ui-icon ui-icon-carat-1-s" ); + equal( element.spinner( "widget" ).find( ".ui-icon:first" ).attr( "class" ), "ui-icon ui-icon-caret-1-n" ); + equal( element.spinner( "widget" ).find( ".ui-icon:last" ).attr( "class" ), "ui-icon ui-icon-caret-1-s" ); }); test( "icons: custom ", function() { diff --git a/tests/visual/menu/menu.html b/tests/visual/menu/menu.html index 855748d3d..c71f50ff4 100644 --- a/tests/visual/menu/menu.html +++ b/tests/visual/menu/menu.html @@ -35,7 +35,7 @@ $( "#menu6" ).menu({ menus: ".menuElement", select: logger, - icon: "ui-icon-carat-1-s" + icon: "ui-icon-caret-1-s" }); $( "#menu7" ).menu({ diff --git a/themes/base/theme.css b/themes/base/theme.css index cda87011a..2aa741102 100644 --- a/themes/base/theme.css +++ b/themes/base/theme.css @@ -188,16 +188,16 @@ /* positioning */ .ui-icon-blank { background-position: 16px 16px; } -.ui-icon-carat-1-n { background-position: 0 0; } -.ui-icon-carat-1-ne { background-position: -16px 0; } -.ui-icon-carat-1-e { background-position: -32px 0; } -.ui-icon-carat-1-se { background-position: -48px 0; } -.ui-icon-carat-1-s { background-position: -64px 0; } -.ui-icon-carat-1-sw { background-position: -80px 0; } -.ui-icon-carat-1-w { background-position: -96px 0; } -.ui-icon-carat-1-nw { background-position: -112px 0; } -.ui-icon-carat-2-n-s { background-position: -128px 0; } -.ui-icon-carat-2-e-w { background-position: -144px 0; } +.ui-icon-caret-1-n { background-position: 0 0; } +.ui-icon-caret-1-ne { background-position: -16px 0; } +.ui-icon-caret-1-e { background-position: -32px 0; } +.ui-icon-caret-1-se { background-position: -48px 0; } +.ui-icon-caret-1-s { background-position: -64px 0; } +.ui-icon-caret-1-sw { background-position: -80px 0; } +.ui-icon-caret-1-w { background-position: -96px 0; } +.ui-icon-caret-1-nw { background-position: -112px 0; } +.ui-icon-caret-2-n-s { background-position: -128px 0; } +.ui-icon-caret-2-e-w { background-position: -144px 0; } .ui-icon-triangle-1-n { background-position: 0 -16px; } .ui-icon-triangle-1-ne { background-position: -16px -16px; } .ui-icon-triangle-1-e { background-position: -32px -16px; } diff --git a/ui/menu.js b/ui/menu.js index b4909a116..6d60e12a5 100644 --- a/ui/menu.js +++ b/ui/menu.js @@ -31,7 +31,7 @@ return $.widget( "ui.menu", { delay: 300, options: { icons: { - submenu: "ui-icon-carat-1-e" + submenu: "ui-icon-caret-1-e" }, items: "> *", menus: "ul", @@ -178,7 +178,7 @@ return $.widget( "ui.menu", { .removeAttr( "aria-haspopup" ) .children().each(function() { var elem = $( this ); - if ( elem.data( "ui-menu-submenu-carat" ) ) { + if ( elem.data( "ui-menu-submenu-caret" ) ) { elem.remove(); } }); @@ -297,13 +297,13 @@ return $.widget( "ui.menu", { .each(function() { var menu = $( this ), item = menu.prev(), - submenuCarat = $( "<span>" ) + submenuCaret = $( "<span>" ) .addClass( "ui-menu-icon ui-icon " + icon ) - .data( "ui-menu-submenu-carat", true ); + .data( "ui-menu-submenu-caret", true ); item .attr( "aria-haspopup", "true" ) - .prepend( submenuCarat ); + .prepend( submenuCaret ); menu.attr( "aria-labelledby", item.attr( "id" ) ); }); @@ -438,7 +438,7 @@ return $.widget( "ui.menu", { clearTimeout( this.timer ); // Don't open if already open fixes a Firefox bug that caused a .5 pixel - // shift in the submenu position when mousing over the carat icon + // shift in the submenu position when mousing over the caret icon if ( submenu.attr( "aria-hidden" ) !== "true" ) { return; } |