[wp-trac] [WordPress Trac] #21325: Pages, Posts, Comments Screens - Prompts for Screen Readers
WordPress Trac
wp-trac at lists.automattic.com
Sat Jul 21 00:40:31 UTC 2012
#21325: Pages, Posts, Comments Screens - Prompts for Screen Readers
----------------------------+------------------------------
Reporter: grahamarmfield | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Accessibility | Version: 3.4.1
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------------------
Changes (by MikeLittle):
* keywords: => has-patch
Comment:
The posts, pages, comments, links, categories, tags, links, users,
plugins, custom post types, and custom taxonomy screens do have labels for
their respective search boxes. Mostly achieved through re-use of the same
code. THe HTML looks like this:
{{{
<p class="search-box">
<label class="screen-reader-text" for="post-search-input">Search
Posts:</label>
<input type="search" id="post-search-input" name="s" value="" />
<input type="submit" name="" id="search-submit" class="button"
value="Search Posts" /></p>
}}}
The theme search does not have a label. I have attached a patch to address
this.
Note the patch adds labels for the search type dropdown when it appears
and the search input box. The label for the search input box is dynamic
based on the setting of the drop down when the page is drawn.
A second pass might be to make this label dynamic client side (using
jQuery) so that it updates when the drop down is changed. I don't know how
accessible that would be.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21325#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list