Make WordPress Core

Ticket #48751: 48751.1.diff

File 48751.1.diff, 2.0 KB (added by audrasjb, 3 years ago)

Refreshes patch and remove old and useless related backward compatibility css rules

  • src/js/_enqueues/admin/common.js

    diff --git a/src/js/_enqueues/admin/common.js b/src/js/_enqueues/admin/common.js
    index 75c77b3bac..1f8581e610 100644
    a b $document.ready( function() { 
    882882                        });
    883883        });
    884884
    885         /**
    886          * Shows row actions on focus of its parent container element or any other elements contained within.
    887          *
    888          * @return {void}
    889          */
    890         $( '#wpbody-content' ).on({
    891                 focusin: function() {
    892                         clearTimeout( transitionTimeout );
    893                         focusedRowActions = $( this ).find( '.row-actions' );
    894                         // transitionTimeout is necessary for Firefox, but Chrome won't remove the CSS class without a little help.
    895                         $( '.row-actions' ).not( this ).removeClass( 'visible' );
    896                         focusedRowActions.addClass( 'visible' );
    897                 },
    898                 focusout: function() {
    899                         // Tabbing between post title and .row-actions links needs a brief pause, otherwise
    900                         // the .row-actions div gets hidden in transit in some browsers (ahem, Firefox).
    901                         transitionTimeout = setTimeout( function() {
    902                                 focusedRowActions.removeClass( 'visible' );
    903                         }, 30 );
    904                 }
    905         }, '.has-row-actions' );
    906 
    907885        // Toggle list table rows on small screens.
    908886        $( 'tbody' ).on( 'click', '.toggle-row', function() {
    909887                $( this ).closest( 'tr' ).toggleClass( 'is-expanded' );
  • src/wp-admin/css/list-tables.css

    diff --git a/src/wp-admin/css/list-tables.css b/src/wp-admin/css/list-tables.css
    index 3e55bb2d0e..e46d3a5f16 100644
    a b p.pagenav { 
    806806        color: #ddd;
    807807        font-size: 13px;
    808808        padding: 2px 0 0;
    809         position: relative;
    810         left: -9999em;
    811809}
    812810
    813811/* ticket #34150 */
    p.pagenav { 
    820818        color: #000;
    821819}
    822820
    823 .no-js .row-actions,
    824 tr:hover .row-actions,
    825 .mobile .row-actions,
    826 .row-actions.visible,
    827 .comment-item:hover .row-actions {
    828         position: static;
    829 }
    830 
    831 /* deprecated */
    832 .row-actions-visible {
    833         padding: 2px 0 0;
    834 }
    835 
    836 
    837821/*------------------------------------------------------------------------------
    838822  10.1 - Inline Editing
    839823------------------------------------------------------------------------------*/