Accessibility: bump headings one level up on the Add Plugins screen for a better headings hierarchy.

Fixes #33818.

git-svn-id: https://develop.svn.wordpress.org/trunk@35009 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia 2015-10-10 15:16:04 +00:00
parent 437bbeead5
commit e69aca18dc
3 changed files with 6 additions and 6 deletions

View File

@ -1436,11 +1436,11 @@ tr.active + tr.plugin-update-tr:not(.updated) .plugin-update .update-message {
background-color: #fcf3ef; background-color: #fcf3ef;
} }
.plugin-install-php h3 { .plugin-install-php h2 {
clear: both; clear: both;
} }
.plugin-install-php h4 { .plugin-install-php h3 {
margin: 2.5em 0 8px; margin: 2.5em 0 8px;
} }
@ -1517,7 +1517,7 @@ div.action-links,
margin: 0; /* Override existing margins */ margin: 0; /* Override existing margins */
} }
.plugin-card h4 { .plugin-card h3 {
margin: 0 0 12px; margin: 0 0 12px;
font-size: 18px; font-size: 18px;
line-height: 1.3; line-height: 1.3;

View File

@ -496,12 +496,12 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
<div class="plugin-card plugin-card-<?php echo sanitize_html_class( $plugin['slug'] ); ?>"> <div class="plugin-card plugin-card-<?php echo sanitize_html_class( $plugin['slug'] ); ?>">
<div class="plugin-card-top"> <div class="plugin-card-top">
<div class="name column-name"> <div class="name column-name">
<h4> <h3>
<a href="<?php echo esc_url( $details_link ); ?>" class="thickbox"> <a href="<?php echo esc_url( $details_link ); ?>" class="thickbox">
<?php echo $title; ?> <?php echo $title; ?>
<img src="<?php echo esc_attr( $plugin_icon_url ) ?>" class="plugin-icon" alt=""> <img src="<?php echo esc_attr( $plugin_icon_url ) ?>" class="plugin-icon" alt="">
</a> </a>
</h4> </h3>
</div> </div>
<div class="action-links"> <div class="action-links">
<?php <?php

View File

@ -214,7 +214,7 @@ function install_dashboard() {
<?php display_plugins_table(); ?> <?php display_plugins_table(); ?>
<h3><?php _e( 'Popular tags' ) ?></h3> <h2><?php _e( 'Popular tags' ) ?></h2>
<p><?php _e( 'You may also browse based on the most popular tags in the Plugin Directory:' ) ?></p> <p><?php _e( 'You may also browse based on the most popular tags in the Plugin Directory:' ) ?></p>
<?php <?php