Plugins: on the Install page, move the name of each plugin into the `<h4>` to accommodate screen readers.

Props afercia, ChrisMKindred.
Fixes #32400.


git-svn-id: https://develop.svn.wordpress.org/trunk@34760 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-10-02 04:15:12 +00:00
parent 319818a408
commit c152375b58
2 changed files with 6 additions and 7 deletions

View File

@ -1618,11 +1618,6 @@ div.action-links,
margin: 0 20px 20px 0;
}
.plugin-icon img {
width: 128px;
height: 128px;
}
.no-plugin-results {
color: #999;
font-size: 18px;

View File

@ -492,9 +492,13 @@ 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-top">
<a href="<?php echo esc_url( $details_link ); ?>" class="thickbox plugin-icon"><img src="<?php echo esc_attr( $plugin_icon_url ) ?>" /></a>
<div class="name column-name">
<h4><a href="<?php echo esc_url( $details_link ); ?>" class="thickbox"><?php echo $title; ?></a></h4>
<h4>
<a href="<?php echo esc_url( $details_link ); ?>" class="thickbox">
<?php echo $title; ?>
<img src="<?php echo esc_attr( $plugin_icon_url ) ?>" class="plugin-icon" alt="">
</a>
</h4>
</div>
<div class="action-links">
<?php