Make WordPress Core

Changeset 40572


Ignore:
Timestamp:
05/05/2017 07:01:12 PM (8 years ago)
Author:
afercia
Message:

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.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/themes.css

    r40511 r40572  
    2121
    2222/* Search form */
     23.themes-php .wp-filter-search-form {
     24    display: inline;
     25}
     26
    2327.themes-php .wp-filter-search {
    2428    position: relative;
  • trunk/src/wp-admin/js/theme.js

    r40109 r40572  
    8484
    8585    // Defines search element container
    86     searchContainer: $( '.search-form' ),
     86    searchContainer: $( '.wp-filter-search-form' ),
    8787
    8888    // Search input and view
  • trunk/src/wp-admin/themes.php

    r39528 r40572  
    161161    <?php endif; ?>
    162162
    163     <span class="search-form"></span>
     163    <form class="wp-filter-search-form"></form>
    164164
    165165    <hr class="wp-header-end">
Note: See TracChangeset for help on using the changeset viewer.