Ticket #33129: 33129.patch
| File 33129.patch, 3.8 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/css/customize-nav-menus.css
214 214 width: 30px; 215 215 height: 38px; 216 216 margin-right: 0 !important; 217 text-indent: 100%;218 217 outline: none; 219 218 overflow: hidden; 220 white-space: nowrap;221 219 cursor: pointer; 222 220 } 223 221 … … 227 225 box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); 228 226 } 229 227 230 /* Duplicates `.nav-menus-php .item-edit:before {}` in common.css:2220. */ 231 .wp-customizer .menu-item .item-edit:before { 232 top: -1px; 233 right: 0; 228 /* rework the arrow indicator implementation for NVDA bug same as #32715 */ 229 .wp-customizer .menu-item .item-edit .toggle-indicator { 230 display: inline-block; 231 font-size: 20px; 232 line-height: 1; 233 } 234 235 .wp-customizer .menu-item .item-edit .toggle-indicator:after { 234 236 content: '\f140'; 235 border: none;236 background: none;237 237 font: normal 20px/1 dashicons; 238 color: #a0a5aa; 239 vertical-align: top; 238 240 speak: none; 239 display: block;240 padding: 0;241 text-indent: 0;242 text-align: center;243 position: relative;244 241 -webkit-font-smoothing: antialiased; 245 242 -moz-osx-font-smoothing: grayscale; 246 243 text-decoration: none !important; 247 244 } 248 245 249 .wp-customizer .menu-item.menu-item-edit-active .item-edit :before{246 .wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:after { 250 247 content: '\f142'; 251 248 } 252 249 253 .wp-customizer .menu-item .item-edit:before {254 line-height: 2;255 }256 257 /* Duplicates `.nav-menus-php .menu-item-edit-active .item-edit:before {}` in common.css:2271. */258 .wp-customizer .menu-item .menu-item-edit-active .item-edit:before {259 content: '\f142';260 }261 262 250 .wp-customizer .menu-item-settings p.description { 263 251 font-style: normal; 264 252 } -
src/wp-admin/js/customize-nav-menus.js
1364 1364 self.container.trigger( 'expanded' ); 1365 1365 }; 1366 1366 1367 $menuitem.find( '.item-edit' ).attr( 'aria-expanded', 'true' ); 1367 1368 $inside.slideDown( 'fast', complete ); 1368 1369 1369 1370 self.container.trigger( 'expand' ); … … 1377 1378 1378 1379 self.container.trigger( 'collapse' ); 1379 1380 1381 $menuitem.find( '.item-edit' ).attr( 'aria-expanded', 'false' ); 1380 1382 $inside.slideUp( 'fast', complete ); 1381 1383 } 1382 1384 }, -
src/wp-includes/class-wp-customize-control.php
1685 1685 <span class="menu-item-title<# if ( ! data.title ) { #> no-title<# } #>">{{ data.title || wp.customize.Menus.data.l10n.untitled }}</span> 1686 1686 </span> 1687 1687 <span class="item-controls"> 1688 <button type="button" class="not-a-button item-edit" ><span class="screen-reader-text"><?php1688 <button type="button" class="not-a-button item-edit" aria-expanded="false"><span class="screen-reader-text"><?php 1689 1689 /* translators: 1: Title of a menu item, 2: Type of a menu item */ 1690 1690 printf( __( 'Edit menu item: %1$s (%2$s)' ), '{{ data.title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.item_type_label }}' ); 1691 ?></span>< /button>1691 ?></span><span class="toggle-indicator" aria-hidden="true"></span></button> 1692 1692 <button type="button" class="not-a-button item-delete submitdelete deletion"><span class="screen-reader-text"><?php 1693 1693 /* translators: 1: Title of a menu item, 2: Type of a menu item */ 1694 1694 printf( __( 'Remove Menu Item: %1$s (%2$s)' ), '{{ data.title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.item_type_label }}' );