diff --git a/src/wp-admin/css/revisions.css b/src/wp-admin/css/revisions.css
index 236d762..bc4738d 100644
a
|
b
|
table.diff th { |
220 | 220 | font-family: Consolas, Monaco, monospace; |
221 | 221 | font-size: 14px; |
222 | 222 | line-height: 1.618; |
223 | | padding: .5em; |
| 223 | padding: .5em .5em .5em 2em; |
224 | 224 | vertical-align: top; |
225 | 225 | word-wrap: break-word; |
226 | 226 | } |
… |
… |
table.diff .diff-addedline ins { |
240 | 240 | } |
241 | 241 | |
242 | 242 | table.diff .diff-deletedline { |
| 243 | position: relative; |
243 | 244 | background-color: #ffe9e9; |
244 | 245 | } |
245 | 246 | |
| 247 | table.diff .diff-deletedline .dashicons { |
| 248 | position: absolute; |
| 249 | top: .8em; |
| 250 | left: .25em; |
| 251 | font-size: 1em; |
| 252 | } |
| 253 | |
246 | 254 | table.diff .diff-deletedline del { |
247 | 255 | background-color: #faa; |
248 | 256 | } |
249 | 257 | |
250 | 258 | table.diff .diff-addedline { |
| 259 | position: relative; |
251 | 260 | background-color: #e9ffe9; |
252 | 261 | } |
253 | 262 | |
| 263 | table.diff .diff-addedline .dashicons { |
| 264 | position: absolute; |
| 265 | top: .8em; |
| 266 | left: .25em; |
| 267 | font-size: 1em; |
| 268 | } |
| 269 | |
254 | 270 | table.diff .diff-addedline ins { |
255 | 271 | background-color: #afa; |
256 | 272 | } |
diff --git a/src/wp-includes/class-wp-text-diff-renderer-table.php b/src/wp-includes/class-wp-text-diff-renderer-table.php
index a158ea2..010b25e 100644
a
|
b
|
class WP_Text_Diff_Renderer_Table extends Text_Diff_Renderer { |
97 | 97 | * @return string |
98 | 98 | */ |
99 | 99 | public function addedLine( $line ) { |
100 | | return "<td class='diff-addedline'>{$line}</td>"; |
| 100 | return "<td class='diff-addedline'><span aria-hidden='true' class='dashicons dashicons-plus'></span><span class='screen-reader-text'>" . __( 'Added:' ) . " </span>{$line}</td>"; |
101 | 101 | |
102 | 102 | } |
103 | 103 | |
… |
… |
class WP_Text_Diff_Renderer_Table extends Text_Diff_Renderer { |
108 | 108 | * @return string |
109 | 109 | */ |
110 | 110 | public function deletedLine( $line ) { |
111 | | return "<td class='diff-deletedline'>{$line}</td>"; |
| 111 | return "<td class='diff-deletedline'><span aria-hidden='true' class='dashicons dashicons-minus'></span><span class='screen-reader-text'>" . __( 'Deleted:' ) . " </span>{$line}</td>"; |
112 | 112 | } |
113 | 113 | |
114 | 114 | /** |
… |
… |
class WP_Text_Diff_Renderer_Table extends Text_Diff_Renderer { |
118 | 118 | * @return string |
119 | 119 | */ |
120 | 120 | public function contextLine( $line ) { |
121 | | return "<td class='diff-context'>{$line}</td>"; |
| 121 | return "<td class='diff-context'><span class='screen-reader-text'>" . __( 'Unchanged:' ) . " </span>{$line}</td>"; |
122 | 122 | } |
123 | 123 | |
124 | 124 | /** |