From 6b49ad22ba22d7dec7819e5e13b65fa679dd8820 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Thu, 4 Feb 2016 19:18:21 +0000 Subject: [PATCH] Accessibility: simplify the Plugins and Themes tables on the Updates screen. Although it may seem counterintuitive at first, in very limited cases it's better to remove improper semantics (this is not a tabular data table) in order to reduce noise for screen reader users and simplify all the things. Also improves headings to better separate sections. Fixes #34780. git-svn-id: https://develop.svn.wordpress.org/trunk@36477 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 14 ++++---- src/wp-admin/css/list-tables.css | 18 ++++------ src/wp-admin/update-core.php | 57 +++++++++++++++++--------------- 3 files changed, 44 insertions(+), 45 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 76583b12ef..679b0b919e 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -345,8 +345,12 @@ h3 { margin: 1em 0; } +.update-core-php h2 { + margin-top: 2em; +} + .update-php h2, -.update-core-php h2, +.update-messages h2, h4 { font-size: 1em; margin: 1.33em 0; @@ -512,6 +516,7 @@ code { } .widefat th input, +.updates-table td input, .widefat thead td input, .widefat tfoot td input { margin: 0 0 0 8px; @@ -525,18 +530,13 @@ code { vertical-align: top; } -.widefat th input[type=checkbox], -.widefat thead td input[type=checkbox], -.widefat tfoot td input[type=checkbox] { - margin-top: -1px; -} - .widefat tbody th.check-column { padding: 9px 0 22px; } .widefat thead td.check-column, .widefat tbody th.check-column, +.updates-table tbody td.check-column, .widefat tfoot td.check-column { padding: 11px 0 0 3px; } diff --git a/src/wp-admin/css/list-tables.css b/src/wp-admin/css/list-tables.css index fa98d9972d..837a2b2bfd 100644 --- a/src/wp-admin/css/list-tables.css +++ b/src/wp-admin/css/list-tables.css @@ -1207,25 +1207,16 @@ ul.cat-checklist { margin-top: 4px; } -#update-plugins-table tbody td p { +.updates-table .plugin-title p { margin-top: 0; } -#update-plugins-table tbody td p strong { - font-size: 14px; -} - .plugins thead td.check-column, .plugins tfoot td.check-column, .plugins .inactive th.check-column { padding-left: 6px; } -#update-plugins-table thead td.check-column, -#update-plugins-table tfoot td.check-column { - padding-top: 11px; -} - .plugins, .plugins th, .plugins td { @@ -1340,6 +1331,11 @@ tr.active.update + tr.plugin-update-tr .plugin-update { white-space:nowrap; } +.updates-table-screenshot { + float:left; + padding: 0 10px 5px 0; +} + .plugins .inactive .plugin-title strong { font-weight: 400; } @@ -2053,7 +2049,7 @@ div.action-links, } /* Updates */ - #wpbody-content #update-themes-table .plugin-title { + #wpbody-content .updates-table .plugin-title { width: auto; white-space: normal; } diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index 3b8e06b6ae..a38b5bbba1 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -242,11 +242,11 @@ function list_plugin_updates() {

- +
- - + + @@ -288,23 +288,26 @@ function list_plugin_updates() { $checkbox_id = "checkbox_" . md5( $plugin_data->Name ); ?> - + + - - + +
+ + - - -

Name; ?>
Version, - $plugin_data->update->new_version - ); - echo ' ' . $details . $compat . $upgrade_notice; - ?>

+ Name; ?> + Version, + $plugin_data->update->new_version + ); + echo ' ' . $details . $compat . $upgrade_notice; + ?> +

@@ -342,11 +345,11 @@ function list_theme_updates() {

- +
- - + + @@ -356,17 +359,17 @@ function list_theme_updates() { $checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) ); ?> - + +

- - + +
+ + - - - - +

+ display( 'Name' ); ?> update['new_version'] ); ?> -