Changeset 58405
- Timestamp:
- 06/13/2024 01:55:46 PM (6 months ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/theme.js
r57987 r58405 97 97 98 98 // Defines search element container. 99 searchContainer: $( '.search-form ' ),99 searchContainer: $( '.search-form .search-box' ), 100 100 101 101 // Search input and view … … 119 119 view.render(); 120 120 this.searchContainer 121 .append( $.parseHTML( '<label class="screen-reader-text"for="wp-filter-search-input">' + l10n.search + '</label>' ) )121 .append( $.parseHTML( '<label for="wp-filter-search-input">' + l10n.search + '</label>' ) ) 122 122 .append( view.el ) 123 123 .on( 'submit', function( event ) { … … 1360 1360 1361 1361 attributes: { 1362 placeholder: l10n.searchPlaceholder,1363 1362 type: 'search', 1364 1363 'aria-describedby': 'live-search-desc' -
trunk/src/wp-admin/css/themes.css
r57553 r58405 20 20 } 21 21 22 .themes-php:not(.network-admin) .wrap h1 {23 margin-bottom: 15px;24 }25 26 22 .themes-php .wrap h1 .button { 27 23 margin-left: 20px; … … 30 26 /* Search form */ 31 27 .themes-php .search-form { 32 display: inline; 28 display: inline-flex; 29 align-items: center; 30 position: relative; 31 top: 0; 32 gap: .5rem; 33 width: 100%; 34 justify-content: end; 33 35 } 34 36 35 37 .themes-php .wp-filter-search { 36 38 position: relative; 37 top: -2px;38 left: 20px;39 39 margin: 0; 40 40 width: 280px; … … 956 956 left: 0; 957 957 right: 0; 958 margin: -5px 0 20px;959 958 width: 100%; 960 959 max-width: 280px; 960 } 961 962 .theme-install-php .wp-filter p.search-box { 963 display: grid; 964 row-gap: .5rem; 961 965 } 962 966 … … 1028 1032 .theme-install-php .wp-filter { 1029 1033 padding-left: 20px; 1034 } 1035 1036 /* Override column gap adjustment in media library. */ 1037 @media only screen and (max-width: 1000px) { 1038 .theme-install-php .wp-filter p.search-box { 1039 column-gap: .5rem; 1040 } 1030 1041 } 1031 1042 -
trunk/src/wp-admin/network/site-themes.php
r56409 r58405 238 238 239 239 <form method="get"> 240 <?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?>240 <?php $wp_list_table->search_box( __( 'Search installed themes' ), 'theme' ); ?> 241 241 <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" /> 242 242 </form> -
trunk/src/wp-admin/network/themes.php
r56601 r58405 461 461 462 462 <form method="get"> 463 <?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?>463 <?php $wp_list_table->search_box( __( 'Search installed themes' ), 'theme' ); ?> 464 464 </form> 465 465 -
trunk/src/wp-admin/theme-install.php
r58069 r58405 57 57 'addNew' => __( 'Add New Theme' ), 58 58 'search' => __( 'Search Themes' ), 59 'searchPlaceholder' => __( 'Search themes...' ), // Placeholder (no ellipsis).60 59 'upload' => __( 'Upload Theme' ), 61 60 'back' => __( 'Back' ), … … 218 217 <button type="button" class="button drawer-toggle" aria-expanded="false"><?php _e( 'Feature Filter' ); ?></button> 219 218 220 <form class="search-form">< /form>219 <form class="search-form"><p class="search-box"></p></form> 221 220 222 221 <div class="favorites-form"> -
trunk/src/wp-admin/themes.php
r58069 r58405 233 233 'l10n' => array( 234 234 'addNew' => __( 'Add New Theme' ), 235 'search' => __( 'Search Installed Themes' ), 236 'searchPlaceholder' => __( 'Search installed themes...' ), // Placeholder (no ellipsis). 235 'search' => __( 'Search installed themes' ), 237 236 /* translators: %d: Number of themes. */ 238 237 'themesFound' => __( 'Number of Themes found: %d' ), … … 253 252 <span class="title-count theme-count"><?php echo ! empty( $_GET['search'] ) ? __( '…' ) : count( $themes ); ?></span> 254 253 </h1> 255 256 254 <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?> 257 255 <a href="<?php echo esc_url( admin_url( 'theme-install.php' ) ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html__( 'Add New Theme' ); ?></a> 258 256 <?php endif; ?> 259 260 <form class="search-form"></form>261 262 257 <hr class="wp-header-end"> 258 <form class="search-form search-themes"><p class="search-box"></p></form> 259 263 260 <?php 264 261 if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.