Make WordPress Core

Ticket #38677: 38677.1.patch

File 38677.1.patch, 2.1 KB (added by Cheffheid, 9 years ago)

Markup/JS update and supporting styles

  • wp-admin/css/common.css

     
    899899        color: #f00;
    900900}
    901901
     902.row-actions .button-link {
     903        color: #0073aa;
     904        outline: 0;
     905        -webkit-transition-property: border, background, color;
     906        transition-property: border, background, color;
     907        -webkit-transition-duration: .05s;
     908        transition-duration: .05s;
     909        -webkit-transition-timing-function: ease-in-out;
     910        transition-timing-function: ease-in-out;
     911}
     912
     913.row-actions .button-link:hover,
     914.row-actions .button-link:active {
     915        color: #00a0d2;
     916}
     917
     918.row-actions .button-link:focus {
     919        color: #124964;
     920        -webkit-box-shadow:
     921                0 0 0 1px #5b9dd9,
     922                0 0 2px 1px rgba(30, 140, 190, .8);
     923        box-shadow:
     924                0 0 0 1px #5b9dd9,
     925                0 0 2px 1px rgba(30, 140, 190, .8);
     926}
     927
    902928/*------------------------------------------------------------------------------
    903929  3.0 - Actions
    904930------------------------------------------------------------------------------*/
  • wp-admin/includes/class-wp-posts-list-table.php

     
    12301230                                __( 'Edit' )
    12311231                        );
    12321232                        $actions['inline hide-if-no-js'] = sprintf(
    1233                                 '<a href="#" class="editinline" aria-label="%s">%s</a>',
     1233                                '<button class="button-link editinline" aria-label="%s" type="button">%s</button>',
    12341234                                /* translators: %s: post title */
    12351235                                esc_attr( sprintf( __( 'Quick edit &#8220;%s&#8221; inline' ), $title ) ),
    12361236                                __( 'Quick&nbsp;Edit' )
  • wp-admin/js/inline-edit-post.js

     
    4949                });
    5050
    5151                // add events
    52                 $('#the-list').on( 'click', 'a.editinline', function( e ) {
     52                $('#the-list').on( 'click', '.editinline', function( e ) {
    5353                        e.preventDefault();
    5454                        inlineEditPost.edit(this);
    5555                });