Ticket #40331: 40331.4.diff
File 40331.4.diff, 28.4 KB (added by , 12 months ago) |
---|
-
src/js/_enqueues/vendor/tinymce/plugins/wplink/plugin.js
56 56 renderHtml: function() { 57 57 return ( 58 58 '<div id="' + this._id + '" class="wp-link-input">' + 59 '< input type="text" value="" placeholder="' + tinymce.translate( 'Paste URL or type to search' ) + '" />' +59 '<label for="' + this._id + '_label">' + tinymce.translate( 'Paste URL or type to search' ) + '</label><input id="' + this._id + '_label" type="text" value="" />' + 60 60 '<input type="text" style="display:none" value="" />' + 61 61 '</div>' 62 62 ); 63 63 }, 64 64 setURL: function( url ) { 65 this.getEl().firstChild. value = url;65 this.getEl().firstChild.nextSibling.value = url; 66 66 }, 67 67 getURL: function() { 68 return tinymce.trim( this.getEl().firstChild. value );68 return tinymce.trim( this.getEl().firstChild.nextSibling.value ); 69 69 }, 70 70 getLinkText: function() { 71 var text = this.getEl().firstChild.nextSibling. value;71 var text = this.getEl().firstChild.nextSibling.nextSibling.value; 72 72 73 73 if ( ! tinymce.trim( text ) ) { 74 74 return ''; … … 77 77 return text.replace( /[\r\n\t ]+/g, ' ' ); 78 78 }, 79 79 reset: function() { 80 var urlInput = this.getEl().firstChild ;80 var urlInput = this.getEl().firstChild.nextSibling; 81 81 82 82 urlInput.value = ''; 83 83 urlInput.nextSibling.value = ''; … … 394 394 type: 'WPLinkInput', 395 395 onPostRender: function() { 396 396 var element = this.getEl(), 397 input = element.firstChild ,397 input = element.firstChild.nextSibling, 398 398 $input, cache, last; 399 399 400 400 inputInstance = this; … … 438 438 }, 439 439 select: function( event, ui ) { 440 440 $input.val( ui.item.permalink ); 441 $( element.firstChild.nextSibling ).val( ui.item.title );441 $( element.firstChild.nextSibling.nextSibling ).val( ui.item.title ); 442 442 443 443 if ( 9 === event.keyCode && typeof window.wpLinkL10n !== 'undefined' ) { 444 444 // Audible confirmation message when a link has been selected. -
src/js/_enqueues/wp/customize/controls.js
1917 1917 section.contentContainer.on( 'click', '.feature-filter-toggle', function( e ) { 1918 1918 var $themeContainer = $( '.customize-themes-full-container' ), 1919 1919 $filterToggle = $( e.currentTarget ); 1920 section.filtersHeight = $filterToggle.parent ().next( '.filter-drawer' ).height();1920 section.filtersHeight = $filterToggle.parents( '.themes-filter-bar' ).next( '.filter-drawer' ).height(); 1921 1921 1922 1922 if ( 0 < $themeContainer.scrollTop() ) { 1923 1923 $themeContainer.animate( { scrollTop: 0 }, 400 ); … … 1932 1932 .attr( 'aria-expanded', function( i, attr ) { 1933 1933 return 'true' === attr ? 'false' : 'true'; 1934 1934 }) 1935 .parent ().next( '.filter-drawer' ).slideToggle( 180, 'linear' );1935 .parents( '.themes-filter-bar' ).next( '.filter-drawer' ).slideToggle( 180, 'linear' ); 1936 1936 1937 1937 if ( $filterToggle.hasClass( 'open' ) ) { 1938 1938 var marginOffset = 1018 < window.innerWidth ? 50 : 76; … … 3739 3739 ready: function() { 3740 3740 var control = this, newItem; 3741 3741 if ( 'dropdown-pages' === control.params.type && control.params.allow_addition ) { 3742 newItem = control.container.find( '.new-content-item ' );3742 newItem = control.container.find( '.new-content-item-wrapper' ); 3743 3743 newItem.hide(); // Hide in JS to preserve flex display when showing. 3744 3744 control.container.on( 'click', '.add-new-toggle', function( e ) { 3745 3745 $( e.currentTarget ).slideUp( 180 ); … … 4085 4085 } 4086 4086 4087 4087 toggle = control.container.find( '.add-new-toggle' ); 4088 container = control.container.find( '.new-content-item ' );4088 container = control.container.find( '.new-content-item-wrapper' ); 4089 4089 input = control.container.find( '.create-item-input' ); 4090 4090 title = input.val(); 4091 4091 select = control.container.find( 'select' ); -
src/js/media/views/attachments/browser.js
378 378 } 379 379 380 380 if ( this.options.search ) { 381 // Search is an input, a visually hiddenlabel element needs to be rendered before.381 // Search is an input, a label element needs to be rendered before. 382 382 this.toolbar.set( 'searchLabel', new wp.media.view.Label({ 383 383 value: l10n.searchLabel, 384 384 className: 'media-search-input-label', -
src/wp-admin/css/common.css
1090 1090 1091 1091 .wp-filter .search-form { 1092 1092 float: right; 1093 margin: 10px 0; 1093 display: flex; 1094 align-items: center; 1095 column-gap: .5rem; 1094 1096 } 1095 1097 1096 1098 .wp-filter .search-form input[type="search"] { … … 1119 1121 .wp-filter .search-form.search-plugins .wp-filter-search, 1120 1122 .no-js .wp-filter .search-form.search-plugins .button { 1121 1123 display: inline-block; 1122 margin-top: 10px;1123 1124 vertical-align: top; 1124 1125 } 1125 1126 … … 1360 1361 position: relative; 1361 1362 max-width: 100%; 1362 1363 } 1364 .wp-filter .search-form { 1365 margin: 11px 0; 1366 flex-wrap: wrap; 1367 row-gap: 10px; 1368 } 1363 1369 } 1364 1370 1365 1371 @media only screen and (max-width: 782px) { … … 4151 4157 } 4152 4158 4153 4159 .wp-filter .search-form input[type="search"] { 4154 width: 100%;4155 4160 font-size: 1rem; 4156 4161 } 4157 4162 … … 4205 4210 .nav-tab-active:focus:active { 4206 4211 border-bottom: 1px solid #c3c4c7; 4207 4212 } 4213 4214 .wp-filter .search-form.search-plugins label { 4215 width: 100%; 4216 } 4208 4217 } 4209 4218 4210 4219 @media screen and (max-width: 480px) { -
src/wp-admin/css/customize-controls.css
1082 1082 float: left; 1083 1083 } 1084 1084 1085 #available-menu-items .accordion-section-content .new-content-item ,1086 .customize-control-dropdown-pages .new-content-item {1085 #available-menu-items .accordion-section-content .new-content-item-wrapper, 1086 .customize-control-dropdown-pages .new-content-item-wrapper { 1087 1087 width: calc(100% - 30px); 1088 1088 padding: 8px 15px; 1089 1089 position: absolute; … … 1090 1090 bottom: 0; 1091 1091 z-index: 10; 1092 1092 background: #f0f0f1; 1093 } 1094 1095 .customize-control-dropdown-pages .new-content-item-wrapper { 1096 width: 100%; 1097 padding: 0; 1098 position: static; 1099 } 1100 1101 #available-menu-items .accordion-section-content .new-content-item, 1102 .customize-control-dropdown-pages .new-content-item { 1093 1103 display: flex; 1094 1104 } 1095 1105 … … 1099 1109 position: relative; 1100 1110 } 1101 1111 1112 .customize-control-dropdown-pages .new-content-item-wrapper .new-content-item { 1113 padding: 0; 1114 } 1115 1116 .customize-control-dropdown-pages .new-content-item-wrapper .new-content-item label { 1117 line-height: 1.6; 1118 } 1119 1102 1120 #available-menu-items .new-content-item .create-item-input, 1103 1121 .customize-control-dropdown-pages .new-content-item .create-item-input { 1104 1122 flex-grow: 10; … … 1815 1833 bottom: 0; 1816 1834 } 1817 1835 1818 .themes-filter-bar .feature-filter-toggle {1819 float: right;1820 margin: 3px 0 3px 25px;1821 }1822 1823 1836 .themes-filter-bar .feature-filter-toggle:before { 1824 1837 content: "\f111"; 1825 1838 margin: 0 5px 0 0; … … 1880 1893 animation: .6s themes-fade-in 1; 1881 1894 } 1882 1895 1883 .control-panel-themes .filter-themes-count {1884 position: relative;1885 float: right;1886 line-height: 2.6;1887 }1888 1889 1896 .control-panel-themes .filter-themes-count .themes-displayed { 1890 1897 font-weight: 600; 1891 1898 color: #50575e; … … 2097 2104 box-sizing: border-box; 2098 2105 border-bottom: 1px solid #dcdcde; 2099 2106 } 2107 .customize-preview-header.themes-filter-bar, 2108 .customize-preview-header.themes-filter-bar .search-form { 2109 display: flex; 2110 align-items: center; 2111 gap: 10px; 2112 flex-wrap: wrap; 2113 } 2100 2114 2115 .customize-preview-header.themes-filter-bar .search-form-input { 2116 position: relative; 2117 } 2118 2119 .customize-preview-header .filter-themes-wrapper { 2120 display: grid; 2121 align-items: center; 2122 gap: 10px; 2123 grid-template-columns: auto 1fr; 2124 } 2125 2126 .customize-preview-header .filter-themes-wrapper .filter-themes-count { 2127 justify-self: end; 2128 } 2129 2101 2130 @media screen and (min-width: 1670px) { 2102 2131 .customize-preview-header.themes-filter-bar { 2103 2132 width: 82%; … … 2109 2138 .themes-filter-bar .themes-filter-container { 2110 2139 margin: 0; 2111 2140 padding: 0; 2141 display: flex; 2142 align-items: center; 2143 gap: 10px; 2112 2144 } 2113 2145 2114 2146 .themes-filter-bar .wp-filter-search { … … 2117 2149 max-width: 100%; 2118 2150 width: 40%; 2119 2151 min-width: 300px; 2120 position: absolute;2121 top: 6px;2122 left: 25px;2123 2152 height: 32px; 2124 2153 margin: 1px 0; 2154 top: 0; 2155 left: 0; 2125 2156 } 2126 2157 2127 2158 /* Unstick the filter bar on short windows/screens. This breakpoint is based on the … … 2155 2186 } 2156 2187 } 2157 2188 2158 @media screen and (max-width: 9 00px) {2189 @media screen and (max-width: 960px) { 2159 2190 .customize-preview-header.themes-filter-bar { 2160 height: 86px; 2161 padding-top: 46px; 2191 height: 96px; 2162 2192 } 2193 } 2163 2194 2195 @media screen and (max-width: 900px) { 2164 2196 .themes-filter-bar .wp-filter-search { 2165 width: calc(100% - 50px);2197 width: 100%; 2166 2198 margin: 0; 2167 2199 min-width: 200px; 2168 2200 } 2169 2201 2202 .customize-preview-header.themes-filter-bar, 2203 .customize-preview-header.themes-filter-bar .search-form 2204 .themes-filter-bar .themes-filter-container { 2205 display: grid; 2206 gap: 4px; 2207 } 2208 2209 .customize-preview-header.themes-filter-bar .search-form-input { 2210 display: flex; 2211 flex-grow: 1; 2212 } 2213 2170 2214 .filter-drawer { 2171 2215 top: 86px; 2172 2216 } … … 2580 2624 } 2581 2625 2582 2626 #available-widgets-list { 2583 top: 60px;2627 top: 82px; 2584 2628 position: absolute; 2585 2629 overflow: auto; 2586 2630 bottom: 0; … … 2624 2668 #available-widgets-filter .search-icon { 2625 2669 display: block; 2626 2670 position: absolute; 2627 top: 15px; /* 13 container padding +1 input margin +1 input border */2671 bottom: 15px; /* 13 container padding +1 input margin +1 input border */ 2628 2672 left: 16px; 2629 2673 width: 30px; 2630 2674 height: 30px; … … 2634 2678 } 2635 2679 2636 2680 #available-widgets-filter .clear-results, 2637 #available-menu-items-search . clear-results {2681 #available-menu-items-search .accordion-section-title .clear-results { 2638 2682 position: absolute; 2639 top: 15px; /* 13 container padding +1 input margin +1 input border */2683 top: 36px; /* 13 container padding +1 input margin +1 input border */ 2640 2684 right: 16px; 2641 2685 width: 30px; 2642 2686 height: 30px; … … 2695 2739 2696 2740 .themes-filter-bar .search-icon { 2697 2741 position: absolute; 2698 top: 7px;2699 left: 2 6px;2742 top: 2px; 2743 left: 2px; 2700 2744 z-index: 1; 2701 2745 color: #646970; 2702 2746 height: 30px; … … 2814 2858 margin-top: 12px; 2815 2859 } 2816 2860 2817 . wp-core-ui .themes-filter-bar .feature-filter-toggle{2818 margin: 3px 0 3px 25px;2861 .customize-preview-header.themes-filter-bar .search-icon { 2862 top: 6px; 2819 2863 } 2820 2864 } 2821 2865 … … 2952 2996 } 2953 2997 2954 2998 #available-widgets-list { 2955 top: 1 30px;2999 top: 152px; 2956 3000 } 2957 3001 2958 #available-menu-items-search .clear-results ,2959 #available-menu-items-search .search-icon {2960 top: 85px; /* 70 section title height + 13 container padding +1 input margin +1 input border */3002 #available-menu-items-search .clear-results { 3003 top: 36px; 3004 right: 16px; 2961 3005 } 2962 3006 2963 3007 .reorder, … … 2964 3008 .reordering .reorder-done { 2965 3009 padding: 8px; 2966 3010 } 2967 2968 .wp-core-ui .themes-filter-bar .feature-filter-toggle {2969 margin: 0;2970 }2971 3011 } 2972 3012 2973 3013 @media screen and (max-width: 600px) { -
src/wp-admin/css/customize-nav-menus.css
557 557 558 558 #available-menu-items .accordion-section-title .no-items, 559 559 #available-menu-items .cannot-expand .accordion-section-title .spinner, 560 #available-menu-items .cannot-expand .accordion-section-title > button {560 #available-menu-items .cannot-expand .accordion-section-title > button:not(#available-menu-items-search button.is-visible) { 561 561 display: none; 562 562 } 563 563 … … 581 581 } 582 582 583 583 #available-menu-items .accordion-section-content .available-menu-items-list { 584 margin: 0 0 45px;584 margin: 0 0 64px; 585 585 padding: 1px 15px 15px; 586 586 } 587 587 … … 680 680 681 681 #available-menu-items-search .spinner { 682 682 position: absolute; 683 top: 20px; /* 13 container padding +1 input margin +6 ( ( 32 input height - 20 spinner height ) / 2 ) */683 bottom: 20px; /* 13 container padding +1 input margin +6 ( ( 32 input height - 20 spinner height ) / 2 ) */ 684 684 right: 21px; 685 685 margin: 0 !important; 686 686 } … … 689 689 #available-menu-items #available-menu-items-search .accordion-section-content { 690 690 position: absolute; 691 691 left: 0; 692 top: 60px; /* below title div / search input */692 top: 75px; /* below title div / search input */ 693 693 bottom: 0; /* 100% height that still triggers lazy load */ 694 694 max-height: none; 695 695 width: 100%; … … 878 878 879 879 @media screen and (max-width: 640px) { 880 880 #available-menu-items #available-menu-items-search .accordion-section-content { 881 top: 1 30px;881 top: 146px; 882 882 } 883 883 } -
src/wp-admin/css/forms.css
720 720 } 721 721 722 722 p.search-box { 723 display: flex; 724 flex-wrap: wrap; 725 align-items: center; 726 column-gap: 0.5rem; 727 position: relative; 723 728 float: right; 724 margin: 0;729 margin: 11px 0; 725 730 } 726 731 727 732 .network-admin.themes-php p.search-box { -
src/wp-admin/css/media.css
585 585 } 586 586 587 587 .media-frame-content .media-search-input-label { 588 margin: 0 .2em 0 0;589 588 vertical-align: baseline; 590 589 } 591 590 592 .media-frame.mode-grid .media-search-input-label {593 position: static;594 margin: 0 .5em 0 0;595 }596 597 591 .attachments-browser .media-toolbar-secondary > .media-button { 598 592 margin-right: 10px; 599 593 } … … 1373 1367 width: 100%; 1374 1368 margin-bottom: 20px; 1375 1369 display: flex; 1370 flex-wrap: nowrap; 1371 column-gap: 0; 1376 1372 } 1377 1373 1374 .wp-filter p.search-box #media-search-input { 1375 width: 100%; 1376 } 1377 1378 1378 } 1379 1379 1380 1380 @media only screen and (max-width: 782px) { -
src/wp-admin/includes/class-wp-plugins-list-table.php
453 453 } 454 454 ?> 455 455 <p class="search-box"> 456 <label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label>457 <input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wp-filter-search" name="s" value="<?php _admin_search_query(); ?>" placeholder="<?php esc_attr_e( 'Search installed plugins...' ); ?>"/>456 <label for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?></label> 457 <input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wp-filter-search" name="s" value="<?php _admin_search_query(); ?>" /> 458 458 <?php submit_button( $text, 'hide-if-js', '', false, array( 'id' => 'search-submit' ) ); ?> 459 459 </p> 460 460 <?php -
src/wp-admin/includes/plugin-install.php
320 320 ?> 321 321 <form class="search-form search-plugins" method="get"> 322 322 <input type="hidden" name="tab" value="search" /> 323 <label for="search-plugins"><?php _e( 'Search Plugins' ); ?></label> 324 <input type="search" name="s" id="search-plugins" value="<?php echo esc_attr( $term ); ?>" class="wp-filter-search" /> 323 325 <label class="screen-reader-text" for="typeselector"> 324 326 <?php 325 327 /* translators: Hidden accessibility text. */ … … 331 333 <option value="author"<?php selected( 'author', $type ); ?>><?php _e( 'Author' ); ?></option> 332 334 <option value="tag"<?php selected( 'tag', $type ); ?>><?php _ex( 'Tag', 'Plugin Installer' ); ?></option> 333 335 </select> 334 <label class="screen-reader-text" for="search-plugins">335 <?php336 /* translators: Hidden accessibility text. */337 _e( 'Search Plugins' );338 ?>339 </label>340 <input type="search" name="s" id="search-plugins" value="<?php echo esc_attr( $term ); ?>" class="wp-filter-search" placeholder="<?php esc_attr_e( 'Search plugins...' ); ?>" />341 336 <?php submit_button( __( 'Search Plugins' ), 'hide-if-js', false, false, array( 'id' => 'search-submit' ) ); ?> 342 337 </form> 343 338 <?php -
src/wp-admin/plugins.php
790 790 <?php $wp_list_table->views(); ?> 791 791 792 792 <form class="search-form search-plugins" method="get"> 793 <?php $wp_list_table->search_box( __( 'Search Installed Plugins' ), 'plugin' ); ?>793 <?php $wp_list_table->search_box( __( 'Search installed plugins' ), 'plugin' ); ?> 794 794 </form> 795 795 796 796 <form method="post" id="bulk-action-form"> -
src/wp-includes/class-wp-customize-control.php
635 635 printf( __( '+ %s' ), get_post_type_object( 'page' )->labels->add_new_item ); 636 636 ?> 637 637 </button> 638 <div class="new-content-item"> 639 <label for="create-input-<?php echo esc_attr( $this->id ); ?>"><span class="screen-reader-text"> 640 <?php 641 /* translators: Hidden accessibility text. */ 642 _e( 'New page title' ); 643 ?> 644 </span></label> 645 <input type="text" id="create-input-<?php echo esc_attr( $this->id ); ?>" class="create-item-input" placeholder="<?php esc_attr_e( 'New page title…' ); ?>"> 646 <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button> 638 <div class="new-content-item-wrapper"> 639 <label for="create-input-<?php echo esc_attr( $this->id ); ?>"><?php _e( 'New page title' ); ?></label> 640 <div class="new-content-item"> 641 <input type="text" id="create-input-<?php echo esc_attr( $this->id ); ?>" class="create-item-input" > 642 <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button> 643 </div> 647 644 </div> 648 645 <?php endif; ?> 649 646 <?php -
src/wp-includes/class-wp-customize-nav-menus.php
1163 1163 </div> 1164 1164 <div id="available-menu-items-search" class="accordion-section cannot-expand"> 1165 1165 <div class="accordion-section-title"> 1166 <label class="screen-reader-text" for="menu-items-search"> 1167 <?php 1168 /* translators: Hidden accessibility text. */ 1169 _e( 'Search Menu Items' ); 1170 ?> 1171 </label> 1172 <input type="text" id="menu-items-search" placeholder="<?php esc_attr_e( 'Search menu items…' ); ?>" aria-describedby="menu-items-search-desc" /> 1166 <label for="menu-items-search"><?php _e( 'Search Menu Items' ); ?></label> 1167 <input type="text" id="menu-items-search" aria-describedby="menu-items-search-desc" /> 1173 1168 <p class="screen-reader-text" id="menu-items-search-desc"> 1174 1169 <?php 1175 1170 /* translators: Hidden accessibility text. */ … … 1177 1172 ?> 1178 1173 </p> 1179 1174 <span class="spinner"></span> 1175 <div class="search-icon" aria-hidden="true"></div> 1176 <button type="button" class="clear-results"><span class="screen-reader-text"> 1177 <?php 1178 /* translators: Hidden accessibility text. */ 1179 _e( 'Clear Results' ); 1180 ?> 1181 </span></button> 1180 1182 </div> 1181 <div class="search-icon" aria-hidden="true"></div>1182 <button type="button" class="clear-results"><span class="screen-reader-text">1183 <?php1184 /* translators: Hidden accessibility text. */1185 _e( 'Clear Results' );1186 ?>1187 </span></button>1188 1183 <ul class="accordion-section-content available-menu-items-list" data-type="search"></ul> 1189 1184 </div> 1190 1185 <?php … … 1243 1238 <?php if ( 'post_type' === $available_item_type['type'] ) : ?> 1244 1239 <?php $post_type_obj = get_post_type_object( $available_item_type['object'] ); ?> 1245 1240 <?php if ( current_user_can( $post_type_obj->cap->create_posts ) && current_user_can( $post_type_obj->cap->publish_posts ) ) : ?> 1246 <div class="new-content-item"> 1247 <label for="<?php echo esc_attr( 'create-item-input-' . $available_item_type['object'] ); ?>" class="screen-reader-text"><?php echo esc_html( $post_type_obj->labels->add_new_item ); ?></label> 1248 <input type="text" id="<?php echo esc_attr( 'create-item-input-' . $available_item_type['object'] ); ?>" class="create-item-input" placeholder="<?php echo esc_attr( $post_type_obj->labels->add_new_item ); ?>"> 1249 <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button> 1241 <div class="new-content-item-wrapper"> 1242 <label for="<?php echo esc_attr( 'create-item-input-' . $available_item_type['object'] ); ?>"><?php echo esc_html( $post_type_obj->labels->add_new_item ); ?></label> 1243 <div class="new-content-item"> 1244 <input type="text" id="<?php echo esc_attr( 'create-item-input-' . $available_item_type['object'] ); ?>" class="create-item-input"> 1245 <button type="button" class="button add-content"><?php _e( 'Add' ); ?></button> 1246 </div> 1250 1247 </div> 1251 1248 <?php endif; ?> 1252 1249 <?php endif; ?> -
src/wp-includes/class-wp-customize-widgets.php
909 909 </h3> 910 910 </div> 911 911 <div id="available-widgets-filter"> 912 <label class="screen-reader-text"for="widgets-search">912 <label for="widgets-search"> 913 913 <?php 914 914 /* translators: Hidden accessibility text. */ 915 915 _e( 'Search Widgets' ); 916 916 ?> 917 917 </label> 918 <input type="text" id="widgets-search" placeholder="<?php esc_attr_e( 'Search widgets…' ); ?>"aria-describedby="widgets-search-desc" />918 <input type="text" id="widgets-search" aria-describedby="widgets-search-desc" /> 919 919 <div class="search-icon" aria-hidden="true"></div> 920 920 <button type="button" class="clear-results"><span class="screen-reader-text"> 921 921 <?php -
src/wp-includes/css/editor.css
1737 1737 color: #d63638; 1738 1738 } 1739 1739 1740 .mce-inline-toolbar-grp div.mce-flow-layout-item > div { 1741 display: flex; 1742 align-items: flex-end; 1743 } 1744 1740 1745 div.wp-link-input { 1741 1746 float: left; 1742 1747 margin: 2px; … … 1743 1748 max-width: 694px; 1744 1749 } 1745 1750 1751 div.wp-link-input label { 1752 margin-bottom: 4px; 1753 display: block; 1754 } 1755 1746 1756 div.wp-link-input input { 1747 1757 width: 300px; 1748 1758 padding: 3px; -
src/wp-includes/css/media-views.css
1209 1209 display: flex; 1210 1210 align-items: center; 1211 1211 column-gap: .5rem; 1212 margin: 11px 0; 1212 1213 } 1213 1214 1214 1215 .mode-grid .attachments-browser .media-toolbar-mode-select .media-toolbar-primary { … … 2802 2803 } 2803 2804 2804 2805 .mode-grid .attachments-browser .media-toolbar-primary { 2805 display: flex; 2806 display: grid; 2807 grid-template-columns: auto 1fr; 2806 2808 } 2807 2809 2808 2810 .mode-grid .attachments-browser .media-toolbar-primary input[type="search"] { -
src/wp-includes/customize/class-wp-customize-themes-section.php
124 124 <button type="button" class="button button-primary customize-section-back customize-themes-mobile-back"><?php _e( 'Go to theme sources' ); ?></button> 125 125 <# if ( 'wporg' === data.action ) { #> 126 126 <div class="search-form"> 127 <label for="wp-filter-search-input-{{ data.id }}" class="screen-reader-text"> 128 <?php 129 /* translators: Hidden accessibility text. */ 130 _e( 'Search themes…' ); 131 ?> 132 </label> 133 <input type="search" id="wp-filter-search-input-{{ data.id }}" placeholder="<?php esc_attr_e( 'Search themes…' ); ?>" aria-describedby="{{ data.id }}-live-search-desc" class="wp-filter-search"> 134 <div class="search-icon" aria-hidden="true"></div> 135 <span id="{{ data.id }}-live-search-desc" class="screen-reader-text"> 136 <?php 137 /* translators: Hidden accessibility text. */ 138 _e( 'The search results will be updated as you type.' ); 139 ?> 140 </span> 127 <label for="wp-filter-search-input-{{ data.id }}"><?php _e( 'Search themes' ); ?></label> 128 <div class="search-form-input"> 129 <input type="search" id="wp-filter-search-input-{{ data.id }}" aria-describedby="{{ data.id }}-live-search-desc" class="wp-filter-search"> 130 <div class="search-icon" aria-hidden="true"></div> 131 <span id="{{ data.id }}-live-search-desc" class="screen-reader-text"> 132 <?php 133 /* translators: Hidden accessibility text. */ 134 _e( 'The search results will be updated as you type.' ); 135 ?> 136 </span> 137 </div> 141 138 </div> 139 <# } else { #> 140 <div class="themes-filter-container"> 141 <label for="{{ data.id }}-themes-filter"><?php _e( 'Search themes' ); ?></label> 142 <div class="search-form-input"> 143 <input type="search" id="{{ data.id }}-themes-filter" aria-describedby="{{ data.id }}-live-search-desc" class="wp-filter-search wp-filter-search-themes" /> 144 <div class="search-icon" aria-hidden="true"></div> 145 <span id="{{ data.id }}-live-search-desc" class="screen-reader-text"> 146 <?php 147 /* translators: Hidden accessibility text. */ 148 _e( 'The search results will be updated as you type.' ); 149 ?> 150 </span> 151 </div> 152 </div> 153 <# } #> 154 <div class="filter-themes-wrapper"> 155 <# if ( 'wporg' === data.action ) { #> 142 156 <button type="button" class="button feature-filter-toggle"> 143 157 <span class="filter-count-0"><?php _e( 'Filter themes' ); ?></span><span class="filter-count-filters"> 144 158 <?php … … 147 161 ?> 148 162 </span> 149 163 </button> 150 <# } else {#>151 <div class=" themes-filter-container">152 < label for="{{ data.id }}-themes-filter" class="screen-reader-text">164 <# } #> 165 <div class="filter-themes-count"> 166 <span class="themes-displayed"> 153 167 <?php 154 /* translators: Hidden accessibility text. */155 _e( 'Search themes…' );168 /* translators: %s: Number of themes displayed. */ 169 printf( __( '%s themes' ), '<span class="theme-count">0</span>' ); 156 170 ?> 157 </label>158 <input type="search" id="{{ data.id }}-themes-filter" placeholder="<?php esc_attr_e( 'Search themes…' ); ?>" aria-describedby="{{ data.id }}-live-search-desc" class="wp-filter-search wp-filter-search-themes" />159 <div class="search-icon" aria-hidden="true"></div>160 <span id="{{ data.id }}-live-search-desc" class="screen-reader-text">161 <?php162 /* translators: Hidden accessibility text. */163 _e( 'The search results will be updated as you type.' );164 ?>165 171 </span> 166 172 </div> 167 <# } #>168 <div class="filter-themes-count">169 <span class="themes-displayed">170 <?php171 /* translators: %s: Number of themes displayed. */172 printf( __( '%s themes' ), '<span class="theme-count">0</span>' );173 ?>174 </span>175 173 </div> 176 174 <?php 177 175 } -
src/wp-includes/media.php
4833 4833 'apply' => __( 'Apply' ), 4834 4834 'filterByDate' => __( 'Filter by date' ), 4835 4835 'filterByType' => __( 'Filter by type' ), 4836 'searchLabel' => __( 'Search ' ),4836 'searchLabel' => __( 'Search media' ), 4837 4837 'searchMediaLabel' => __( 'Search media' ), // Backward compatibility pre-5.3. 4838 4838 'searchMediaPlaceholder' => __( 'Search media items...' ), // Placeholder (no ellipsis), backward compatibility pre-5.3. 4839 4839 /* translators: %d: Number of attachments found in a search. */