WordPress.org

Make WordPress Core

Ticket #43532: 43532.3.diff

File 43532.3.diff, 2.6 KB (added by afercia, 15 months ago)
  • src/wp-admin/css/revisions.css

     
    223223table.diff th {
    224224        font-family: Consolas, Monaco, monospace;
    225225        font-size: 14px;
    226         line-height: 1.618;
    227         padding: .5em;
     226        line-height: 1.57142857;
     227        padding: 0.5em 0.5em 0.5em 2em;
    228228        vertical-align: top;
    229229        word-wrap: break-word;
    230230}
     
    244244}
    245245
    246246table.diff .diff-deletedline {
     247        position: relative;
    247248        background-color: #ffe9e9;
    248249}
    249250
     
    252253}
    253254
    254255table.diff .diff-addedline {
     256        position: relative;
    255257        background-color: #e9ffe9;
    256258}
    257259
     260table.diff .diff-deletedline .dashicons,
     261table.diff .diff-addedline .dashicons {
     262        position: absolute;
     263        top: 0.85714286em;
     264        left: 0.5em;
     265        width: 1em;
     266        height: 1em;
     267        font-size: 1em;
     268        line-height: 1;
     269}
     270
     271table.diff .diff-addedline .dashicons {
     272        /* Compensate the vertically non-centered plus glyph. */
     273        top: 0.92857143em;
     274}
     275
    258276table.diff .diff-addedline ins {
    259277        background-color: #afa;
    260278}
     
    521539
    522540.wp-slider .ui-slider-range {
    523541        position: absolute;
    524         font-size: .7em;
     542        font-size: 0.7em;
    525543        display: block;
    526544        border: 0;
    527545        background-color: transparent;
     
    529547}
    530548
    531549.wp-slider.ui-slider-horizontal {
    532         height: .7em;
     550        height: 0.7em;
    533551}
    534552
    535553.wp-slider.ui-slider-horizontal .ui-slider-handle {
  • src/wp-includes/class-wp-text-diff-renderer-table.php

     
    113113         * @return string
    114114         */
    115115        public function addedLine( $line ) {
    116                 return "<td class='diff-addedline'>{$line}</td>";
     116                return "<td class='diff-addedline'><span aria-hidden='true' class='dashicons dashicons-plus'></span><span class='screen-reader-text'>" . __( 'Added:' ) . " </span>{$line}</td>";
    117117
    118118        }
    119119
     
    124124         * @return string
    125125         */
    126126        public function deletedLine( $line ) {
    127                 return "<td class='diff-deletedline'>{$line}</td>";
     127                return "<td class='diff-deletedline'><span aria-hidden='true' class='dashicons dashicons-minus'></span><span class='screen-reader-text'>" . __( 'Deleted:' ) . " </span>{$line}</td>";
    128128        }
    129129
    130130        /**
     
    134134         * @return string
    135135         */
    136136        public function contextLine( $line ) {
    137                 return "<td class='diff-context'>{$line}</td>";
     137                return "<td class='diff-context'><span class='screen-reader-text'>" . __( 'Unchanged:' ) . " </span>{$line}</td>";
    138138        }
    139139
    140140        /**