WordPress.org

Make WordPress Core

Changeset 43216


Ignore:
Timestamp:
05/10/2018 04:01:50 PM (19 months ago)
Author:
azaozz
Message:

Privacy: fix styling on personal data tables.

Props melchoyce, allendav.
Fixes #43909.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/forms.css

    r43212 r43216  
    11161116}
    11171117
     1118.privacy_requests tbody .has-request-results th {
     1119    box-shadow: none;
     1120}
     1121
     1122.privacy_requests tbody .request-results th .notice {
     1123    margin: 0 0 5px;
     1124}
     1125
    11181126.privacy_requests tbody td {
    11191127    background: #fff;
    11201128    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
     1129}
     1130
     1131.privacy_requests tbody .has-request-results td {
     1132    box-shadow: none;
    11211133}
    11221134
     
    11331145}
    11341146
    1135 .privacy_requests .request-results .notice {
    1136     margin: -2px 0 0;
    1137 }
    1138 
    1139 .privacy_requests .request-results .notice p {
    1140     margin: 0.5em 0;
    1141 }
    1142 
    1143 .request-results td {
    1144     padding: 0 0 1px;
     1147.privacy_requests .export_personal_data_failed a {
     1148    vertical-align: baseline;
    11451149}
    11461150
  • trunk/src/wp-admin/js/xfn.js

    r43212 r43216  
    3232
    3333    function clearResultsAfterRow( $requestRow ) {
     34        $requestRow.removeClass( 'has-request-results' );
     35
    3436        if ( $requestRow.next().hasClass( 'request-results' ) ) {
    3537            $requestRow.next().remove();
     
    3840
    3941    function appendResultsAfterRow( $requestRow, classes, summaryMessage, additionalMessages ) {
    40         var itemList = '';
     42        var itemList = '',
     43            resultRowClasses = 'request-results';
    4144
    4245        clearResultsAfterRow( $requestRow );
     
    4952        }
    5053
     54        $requestRow.addClass( 'has-request-results' );
     55
     56        if ( $requestRow.hasClass( 'status-request-confirmed' ) ) {
     57            resultRowClasses = resultRowClasses + ' status-request-confirmed';
     58        }
     59
     60        if ( $requestRow.hasClass( 'status-request-failed' ) ) {
     61            resultRowClasses = resultRowClasses + ' status-request-failed';
     62        }
     63
    5164        $requestRow.after( function() {
    52             return '<tr class="request-results"><td colspan="5">' +
     65            return '<tr class="' + resultRowClasses + '"><th colspan="5">' +
    5366                '<div class="notice inline notice-alt ' + classes + '">' +
    5467                '<p>' + summaryMessage + '</p>' +
Note: See TracChangeset for help on using the changeset viewer.