WordPress.org

Make WordPress Core

Ticket #27521: 27521.2.diff

File 27521.2.diff, 4.1 KB (added by jorbin, 7 years ago)
  • src/wp-admin/css/themes.css

     
    4040        top: -3px;
    4141}
    4242
     43.theme-navigation a{
     44        text-decoration:none;
     45}
     46
    4347/* Position admin messages */
    4448.themes-php div.updated,
    4549.themes-php div.error {
     
    11651169        border-radius: 2px;
    11661170        border: none;
    11671171        color: #fff;
     1172        -moz-transition: color .1s ease-in, background .1s ease-in;
     1173        -webkit-transition: color .1s ease-in, background .1s ease-in;
     1174        transition: color .1s ease-in, background .1s ease-in;
    11681175}
     1176body.more-filters-opened .more-filters:hover,
     1177body.more-filters-opened .more-filters:focus {
     1178        outline: 1px dotted rgb(46, 162, 204);
     1179        background: #777;
     1180}
     1181body.more-filters-opened .more-filters:hover:before,
     1182body.more-filters-opened .more-filters:focus:before {
     1183        background: #777;
     1184}
     1185
    11691186.theme-install-php .theme-search {
    11701187        position: absolute;
    11711188        right: 10px;
  • src/wp-admin/js/theme.js

     
    269269        expand: function( event ) {
    270270                var self = this;
    271271
     272
    272273                event = event || window.event;
    273274
    274275                // 'enter' and 'space' keys expand the details view when a theme is :focused
     
    303304                        return this.touchDrag = false;
    304305                }
    305306
     307                // 'enter' and 'space' keys expand the details view when a theme is :focused
     308                if ( event.type === 'keydown' && ( event.which !== 13 && event.which !== 32 ) ) {
     309                        return;
     310                }
     311
    306312                event.preventDefault();
    307313
    308314                event = event || window.event;
     
    799805        search: function( event ) {
    800806                var options = {};
    801807
     808
    802809                // Clear on escape.
    803810                if ( event.type === 'keyup' && event.which === 27 ) {
    804811                        event.target.value = '';
     
    932939
    933940        // Handles Ajax request for searching through themes in public repo
    934941        search: function( event ) {
     942
     943                // Tabbing into the search input shouldn't trigger a search
     944                if ( event.type === 'keyup' && event.which === 9 ) {
     945                        return;
     946                }
     947
    935948                this.collection = this.options.parent.view.collection;
    936949
    937950                // Clear on escape.
     
    10851098                var $el = $( event.target ),
    10861099                        sort = $el.data( 'sort' );
    10871100
     1101                // links that trigger sort have a # as the href, we don't want to add that to the url
     1102                event.preventDefault();
     1103
    10881104                // Bail if this is already active
    10891105                if ( $el.hasClass( this.activeClass ) ) {
    10901106                        return;
  • src/wp-admin/theme-install.php

     
    104104<div class="wrap">
    105105        <h2>
    106106                <?php echo esc_html( $title ); ?>
    107                 <a class="upload add-new-h2"><?php _e( 'Upload Theme' ); ?></a>
    108                 <a class="browse-themes add-new-h2"><?php _ex( 'Browse', 'themes' ); ?></a>
     107                <a href="#" class="upload add-new-h2"><?php _e( 'Upload Theme' ); ?></a>
     108                <a href="#" class="browse-themes add-new-h2"><?php _ex( 'Browse', 'themes' ); ?></a>
    109109        </h2>
    110110
    111111        <div class="upload-theme">
     
    114114
    115115        <div class="theme-navigation">
    116116                <span class="theme-count"></span>
    117                 <span class="theme-section current" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></span>
    118                 <span class="theme-section" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></span>
    119                 <span class="theme-section" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></span>
     117                <a class="theme-section current" href="#" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a>
     118                <a class="theme-section" href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a>
     119                <a class="theme-section" href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a>
    120120                <div class="theme-top-filters">
    121121                        <!--<span class="theme-filter" data-filter="photoblogging">Photography</span>
    122122                        <span class="theme-filter" data-filter="responsive-layout">Responsive</span>-->
    123                         <span class="more-filters"><?php _e( 'Feature Filter' ); ?></span>
     123                        <a class="more-filters" href="#"><?php _e( 'Feature Filter' ); ?></a>
    124124                </div>
    125125                <div class="more-filters-container">
    126126                <?php