Making WordPress.org


Ignore:
Timestamp:
04/25/2024 07:00:16 AM (3 months ago)
Author:
dufresnesteven
Message:

wporg-plugins-2024: Update button styles for the advanced page.

See: https://github.com/WordPress/wordpress.org/issues/274
Props: chriscct7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/inc/template-tags.php

    r13454 r13600  
    381381
    382382    printf(
    383         '<a href="%s" id="download-previous-link" class="button button-secondary">%s</a>',
     383        '<span class="wp-block-button is-small"><a href="%s" id="download-previous-link" class="wp-block-button__link">%s</a></span>',
    384384        esc_url( Template::download_link( $post, reset( $tags ) ) ),
    385385        esc_html__( 'Download', 'wporg-plugins' )
     
    428428    echo '<span class="help">' . esc_attr__( 'Optional. The URL where development happens, such as at github.com.', 'wporg-plugins' ) . '</span>';
    429429    echo '</p>';
    430     echo '<p>';
    431     echo '<button class="button button-secondary" type="submit">' . esc_attr__( 'Save', 'wporg-plugins' ) . '</button>';
     430    echo '<p class="wp-block-button is-small">';
     431    echo '<button class="wp-block-button__link" type="submit">' . esc_html__( 'Save', 'wporg-plugins' ) . '</button>';
    432432    echo '<span class="success-msg">' . __( 'Saved!', 'wporg-plugins' ) . '</span>';
    433433    echo '</p>';
     
    547547        echo '<form method="POST" action="' . esc_url( $close_link ) . '" onsubmit="return confirm( jQuery(this).prev(\'.notice\').text() );">';
    548548        // Translators: %s is the plugin name, as defined by the plugin itself.
    549         echo '<p><input class="button" type="submit" value="' . esc_attr( sprintf( __( 'I understand, please close %s.', 'wporg-plugins' ), get_the_title() ) ) . '" /></p>';
     549        echo '<p class="wp-block-button is-small"><button class="wp-block-button__link" type="submit">' . esc_attr( sprintf( __( 'I understand, please close %s.', 'wporg-plugins' ), get_the_title() ) ) . '</button></p>';
    550550        echo '</form>';
    551551    }
Note: See TracChangeset for help on using the changeset viewer.