Ticket #21471: 21471.3.diff
File 21471.3.diff, 4.2 KB (added by , 12 years ago) |
---|
-
wp-includes/js/admin-bar.js
66 66 e.preventDefault(); 67 67 $('html, body').animate({ scrollTop: 0 }, 'fast'); 68 68 }); 69 70 $('.screen-reader-shortcut').keydown(function (e) { 71 var thisHref = $(this).attr('href'); 72 if ( 13 == e.which && thisHref.substring(0, 1) == "#" ) { 73 setTimeout(function () { 74 $(thisHref).focus(); 75 }, 100); 76 } 77 }); 69 78 70 79 }); 71 80 } else { -
wp-includes/css/admin-bar.css
608 608 } 609 609 610 610 #wpadminbar .screen-reader-shortcut:focus { 611 left: 5px;612 top: 5px;611 left: 6px; 612 top: 7px; 613 613 height: auto; 614 614 width: auto; 615 615 display: block; 616 padding: 10px 15px; 617 background: #fff; 618 color: #000; 619 border: 2px solid #333; 616 font-size: 14px; 617 font-weight: bold; 618 padding: 15px 23px 14px; 619 background: #f3f3f3; 620 background-image: -webkit-gradient(linear, left top, left bottom, from(#8cc1ea), to(#72a7cf)); 621 background-image: -webkit-linear-gradient(top, #8cc1ea, #72a7cf); 622 background-image: -moz-linear-gradient(top, #8cc1ea, #72a7cf); 623 background-image: -o-linear-gradient(top, #8cc1ea, #72a7cf); 624 background-image: linear-gradient(to bottom, #8cc1ea, #72a7cf); 625 color: #fff; 620 626 border-radius: 3px; 621 627 z-index: 100000; 622 text-shadow: none;628 text-shadow: 0 -1px 0 rgba(22, 57, 81, 0.3); 623 629 line-height: normal; 630 -webkit-box-shadow: 0 0 2px 2px rgba(0,0,0,.6); 631 box-shadow: 0 0 2px 2px rgba(0,0,0,.6); 632 text-decoration: none; 624 633 } 625 634 626 635 #wpadminbar a.screen-reader-shortcut { -
wp-includes/class-wp-admin-bar.php
349 349 ?> 350 350 <div id="wpadminbar" class="<?php echo $class; ?>" role="navigation"> 351 351 <a class="screen-reader-text screen-reader-shortcut" href="#wp-toolbar" tabindex="1"><?php _e('Skip to toolbar'); ?></a> 352 <div class="quicklinks" id="wp-toolbar" role="navigation" aria-label="<?php esc_attr_e('Top navigation toolbar.'); ?>" >352 <div class="quicklinks" id="wp-toolbar" role="navigation" aria-label="<?php esc_attr_e('Top navigation toolbar.'); ?>" tabindex="0"> 353 353 <?php foreach ( $root->children as $group ) { 354 354 $this->_render_group( $group ); 355 355 } ?> -
wp-admin/admin-header.php
126 126 127 127 ?> 128 128 129 <div id="wpbody-content" aria-label="<?php esc_attr_e('Main content'); ?>" >129 <div id="wpbody-content" aria-label="<?php esc_attr_e('Main content'); ?>" tabindex="0"> 130 130 <?php 131 131 132 132 $current_screen->render_screen_meta(); -
wp-admin/css/wp-admin.css
192 192 .screen-reader-text span { 193 193 position: absolute; 194 194 left: -1000em; 195 top: -1000em; 195 196 height: 1px; 196 197 width: 1px; 197 198 overflow: hidden; 198 199 } 199 200 200 201 .screen-reader-shortcut:focus { 201 left: 5px;202 top: 5px;202 left: 6px; 203 top: -21px; 203 204 height: auto; 204 205 width: auto; 205 206 display: block; 206 padding: 10px 15px; 207 background: #fff; 208 color: #000; 209 border: 2px solid #333; 207 font-size: 14px; 208 font-weight: bold; 209 padding: 15px 23px 14px; 210 background: #f3f3f3; 211 background-image: -webkit-gradient(linear, left top, left bottom, from(#8cc1ea), to(#72a7cf)); 212 background-image: -webkit-linear-gradient(top, #8cc1ea, #72a7cf); 213 background-image: -moz-linear-gradient(top, #8cc1ea, #72a7cf); 214 background-image: -o-linear-gradient(top, #8cc1ea, #72a7cf); 215 background-image: linear-gradient(to bottom, #8cc1ea, #72a7cf); 216 color: #fff; 210 217 border-radius: 3px; 211 218 z-index: 100000; 219 text-shadow: 0 -1px 0 rgba(22, 57, 81, 0.3); 220 line-height: normal; 221 -webkit-box-shadow: 0 0 2px 2px rgba(0,0,0,.6); 222 box-shadow: 0 0 2px 2px rgba(0,0,0,.6); 223 text-decoration: none; 212 224 } 213 225 214 226 .hidden,