Accessibility: Wrap the installed themes search field within a form element.

Valid code is important not just to formally meet the specification, but also to
ensure user agents, including assistive technologies, can accurately interpret
and parse content. When HTML elements are not used in the recommended way,
user agents may render them in unexpected ways. It can also become a problem for
compatibility with older or even future browsers, devices, or other software.
See W3C WCAG 4.1.1.

Props takayukister, aryamaaru.
Fixes #34881.

Built from https://develop.svn.wordpress.org/trunk@40572


git-svn-id: http://core.svn.wordpress.org/trunk@40442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2017-05-05 19:02:45 +00:00
parent 428afdaa5a
commit 471f1e7201
8 changed files with 14 additions and 6 deletions

View File

@ -20,6 +20,10 @@
}
/* Search form */
.themes-php .wp-filter-search-form {
display: inline;
}
.themes-php .wp-filter-search {
position: relative;
top: -2px;

File diff suppressed because one or more lines are too long

View File

@ -20,6 +20,10 @@
}
/* Search form */
.themes-php .wp-filter-search-form {
display: inline;
}
.themes-php .wp-filter-search {
position: relative;
top: -2px;

File diff suppressed because one or more lines are too long

View File

@ -83,7 +83,7 @@ themes.view.Appearance = wp.Backbone.View.extend({
},
// Defines search element container
searchContainer: $( '.search-form' ),
searchContainer: $( '.wp-filter-search-form' ),
// Search input and view
// for current theme collection

File diff suppressed because one or more lines are too long

View File

@ -160,7 +160,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
<a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html_x( 'Add New', 'Add new theme' ); ?></a>
<?php endif; ?>
<span class="search-form"></span>
<form class="wp-filter-search-form"></form>
<hr class="wp-header-end">
<?php

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-40571';
$wp_version = '4.8-alpha-40572';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.