Bump H4 headings to H2 in the Updates screen for better accessibility.
Fixes #34265. git-svn-id: https://develop.svn.wordpress.org/trunk@35219 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
baf6f0bb6d
commit
e68dfb6c6b
@ -337,6 +337,8 @@ h3 {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.update-php h2,
|
||||
.update-core-php h2,
|
||||
h4 {
|
||||
font-size: 1em;
|
||||
margin: 1.33em 0;
|
||||
|
@ -369,7 +369,7 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
*/
|
||||
public function before($title = '') {
|
||||
$this->in_loop = true;
|
||||
printf( '<h4>' . $this->upgrader->strings['skin_before_update_header'] . ' <span class="spinner waiting-' . $this->upgrader->update_current . '"></span></h4>', $title, $this->upgrader->update_current, $this->upgrader->update_count);
|
||||
printf( '<h2>' . $this->upgrader->strings['skin_before_update_header'] . ' <span class="spinner waiting-' . $this->upgrader->update_current . '"></span></h2>', $title, $this->upgrader->update_current, $this->upgrader->update_count );
|
||||
echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').css("display", "inline-block");</script>';
|
||||
echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr($this->upgrader->update_current) . '"><p>';
|
||||
$this->flush_output();
|
||||
@ -805,7 +805,7 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
|
||||
echo '<div class="update-messages lp-show-latest">';
|
||||
|
||||
printf( '<h4>' . __( 'Updating translations for %1$s (%2$s)…' ) . '</h4>', $name, $this->language_update->language );
|
||||
printf( '<h2>' . __( 'Updating translations for %1$s (%2$s)…' ) . '</h2>', $name, $this->language_update->language );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user