From 3f6a8f2ca83fbb3337f93ebd107c7f6ddcc1a08a Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 5 May 2017 19:01:12 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@40572 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/themes.css | 4 ++++ src/wp-admin/js/theme.js | 2 +- src/wp-admin/themes.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/css/themes.css b/src/wp-admin/css/themes.css index 86fc133d73..f12fea63ea 100644 --- a/src/wp-admin/css/themes.css +++ b/src/wp-admin/css/themes.css @@ -20,6 +20,10 @@ } /* Search form */ +.themes-php .wp-filter-search-form { + display: inline; +} + .themes-php .wp-filter-search { position: relative; top: -2px; diff --git a/src/wp-admin/js/theme.js b/src/wp-admin/js/theme.js index 39ed26ad94..ea9ae00c27 100644 --- a/src/wp-admin/js/theme.js +++ b/src/wp-admin/js/theme.js @@ -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 diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php index c02c17a38a..a7c6596171 100644 --- a/src/wp-admin/themes.php +++ b/src/wp-admin/themes.php @@ -160,7 +160,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); - +