WordPress.org

Make WordPress Core

Changeset 43217


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

Privacy: fix styling on personal data tables.

Props melchoyce, allendav.
Merges [43216] to the 4.9 branch.
Fixes #43909.

Location:
branches/4.9
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/css/forms.css

    r43213 r43217  
    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
  • branches/4.9/src/wp-admin/js/xfn.js

    r43213 r43217  
    2727
    2828    function clearResultsAfterRow( $requestRow ) {
     29        $requestRow.removeClass( 'has-request-results' );
     30
    2931        if ( $requestRow.next().hasClass( 'request-results' ) ) {
    3032            $requestRow.next().remove();
     
    3335
    3436    function appendResultsAfterRow( $requestRow, classes, summaryMessage, additionalMessages ) {
    35         var itemList = '';
     37        var itemList = '',
     38            resultRowClasses = 'request-results';
    3639
    3740        clearResultsAfterRow( $requestRow );
     
    4447        }
    4548
     49        $requestRow.addClass( 'has-request-results' );
     50
     51        if ( $requestRow.hasClass( 'status-request-confirmed' ) ) {
     52            resultRowClasses = resultRowClasses + ' status-request-confirmed';
     53        }
     54
     55        if ( $requestRow.hasClass( 'status-request-failed' ) ) {
     56            resultRowClasses = resultRowClasses + ' status-request-failed';
     57        }
     58
    4659        $requestRow.after( function() {
    47             return '<tr class="request-results"><td colspan="5">' +
     60            return '<tr class="' + resultRowClasses + '"><th colspan="5">' +
    4861                '<div class="notice inline notice-alt ' + classes + '">' +
    4962                '<p>' + summaryMessage + '</p>' +
Note: See TracChangeset for help on using the changeset viewer.