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.
Built from https://develop.svn.wordpress.org/trunk@56027


git-svn-id: http://core.svn.wordpress.org/trunk@55539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
joedolson 2023-06-25 22:57:26 +00:00
parent 993e1093eb
commit c4a22d5a34
6 changed files with 21 additions and 5 deletions

View File

@ -554,6 +554,14 @@ code {
margin-right: 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;

File diff suppressed because one or more lines are too long

View File

@ -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;

File diff suppressed because one or more lines are too long

View File

@ -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>';
}

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.3-alpha-56026';
$wp_version = '6.3-alpha-56027';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.