diff --git a/src/wp-admin/css/revisions.css b/src/wp-admin/css/revisions.css
index 236d762..e8d1418 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 { |
241 | 241 | |
242 | 242 | table.diff .diff-deletedline { |
243 | 243 | background-color: #ffe9e9; |
| 244 | position: relative; |
| 245 | } |
| 246 | |
| 247 | table.diff .diff-deletedline:before { |
| 248 | position: absolute; |
| 249 | top: .5em; |
| 250 | left: .5em; |
| 251 | display: inline-block; |
| 252 | content: "\f460"; |
| 253 | font-size: 1em; |
| 254 | font-weight: normal; |
| 255 | font-family: dashicons; |
| 256 | -webkit-font-smoothing: antialiased; |
| 257 | -moz-osx-font-smoothing: grayscale; |
244 | 258 | } |
245 | 259 | |
246 | 260 | table.diff .diff-deletedline del { |
… |
… |
table.diff .diff-deletedline del { |
249 | 263 | |
250 | 264 | table.diff .diff-addedline { |
251 | 265 | background-color: #e9ffe9; |
| 266 | position: relative; |
| 267 | } |
| 268 | |
| 269 | table.diff .diff-addedline:before { |
| 270 | position: absolute; |
| 271 | top: .5em; |
| 272 | left: .5em; |
| 273 | display: inline-block; |
| 274 | content: "\f132"; |
| 275 | font-size: 1em; |
| 276 | font-weight: normal; |
| 277 | font-family: dashicons; |
| 278 | -webkit-font-smoothing: antialiased; |
| 279 | -moz-osx-font-smoothing: grayscale; |
252 | 280 | } |
253 | 281 | |
254 | 282 | table.diff .diff-addedline ins { |
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..c813357 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 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 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 | /** |