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() { |
| 882 | 882 | }); |
| 883 | 883 | }); |
| 884 | 884 | |
| 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 | | |
| 907 | 885 | // Toggle list table rows on small screens. |
| 908 | 886 | $( 'tbody' ).on( 'click', '.toggle-row', function() { |
| 909 | 887 | $( this ).closest( 'tr' ).toggleClass( 'is-expanded' ); |
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 { |
| 806 | 806 | color: #ddd; |
| 807 | 807 | font-size: 13px; |
| 808 | 808 | padding: 2px 0 0; |
| 809 | | position: relative; |
| 810 | | left: -9999em; |
| 811 | 809 | } |
| 812 | 810 | |
| 813 | 811 | /* ticket #34150 */ |
| … |
… |
p.pagenav { |
| 820 | 818 | color: #000; |
| 821 | 819 | } |
| 822 | 820 | |
| 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 | | |
| 837 | 821 | /*------------------------------------------------------------------------------ |
| 838 | 822 | 10.1 - Inline Editing |
| 839 | 823 | ------------------------------------------------------------------------------*/ |