mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Upgrade/Install: Update 'show details' button change.
Add a up/down arrow for visual affordance about the purpose of the button link; change button text from "Show details" to "More details". Props krupajnanda, subrataemfluence, audrasjb, afercia, nrqsnchz, joedolson. Fixes #44714. git-svn-id: https://develop.svn.wordpress.org/trunk@56027 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c5a7371545
commit
3381afd631
@ -553,6 +553,14 @@ code {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.js-update-details-toggle .dashicons {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.js-update-details-toggle[aria-expanded="true"] .dashicons::before {
|
||||
content: "\f142";
|
||||
}
|
||||
|
||||
.no-js .widefat thead .check-column input,
|
||||
.no-js .widefat tfoot .check-column input {
|
||||
display: none;
|
||||
|
||||
@ -131,7 +131,7 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
$this->in_loop = true;
|
||||
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>';
|
||||
// This progress messages div gets moved via JavaScript when clicking on "Show details.".
|
||||
// This progress messages div gets moved via JavaScript when clicking on "More details.".
|
||||
echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr( $this->upgrader->update_current ) . '"><p>';
|
||||
$this->flush_output();
|
||||
}
|
||||
@ -154,7 +154,7 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
if ( ! $this->error ) {
|
||||
echo '<div class="updated js-update-details" data-update-details="progress-' . esc_attr( $this->upgrader->update_current ) . '">' .
|
||||
'<p>' . sprintf( $this->upgrader->strings['skin_update_successful'], $title ) .
|
||||
' <button type="button" class="hide-if-no-js button-link js-update-details-toggle" aria-expanded="false">' . __( 'Show details.' ) . '</button>' .
|
||||
' <button type="button" class="hide-if-no-js button-link js-update-details-toggle" aria-expanded="false">' . __( 'More details.' ) . '<span class="dashicons dashicons-arrow-down" aria-hidden="true"></span></button>' .
|
||||
'</p></div>';
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user