Closed (fixed)
Project:
Project issue tracking
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Oct 2010 at 17:33 UTC
Updated:
18 Mar 2014 at 00:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dwwBut the search button has a label. Do we need both? If there has to be a label on both the button and the text box for this to be accessible, I'd prefer the one on the text box to be hidden via CSS or something so that it's read but not shown, since it's just clutter for the visual UI.
Comment #2
Everett Zufelt commentedYes, there does need to be an 'accessible name' on the search box. This can be accomplished with:
1. Visible label associated with the for attribute.
2. Invisible label using the for attribute, hidden with the D7 element-invisible class.
3. title attribute on the input element.
Comment #3
dwwd.o isn't running D7, so option #2 won't work directly. I guess we can replicate whatever element-invisible is doing in project_issue.css. Or, we'll have to see how to accomplish #3 without a visible label. Thanks for the input, Everett!
Cheers,
-Derek
Comment #4
Everett Zufelt commentedYep, just copy from d7 modules/system/system.base.css : .element-invisible. Alternatively set the title attribute of the search input element to the desired text.
Comment #5
dwwA patch was posted at #1088370-4: Search box in Issues for Drupal.org webmasters missing a label but it doesn't do the approach discussed here. I'm not fond of adding the duplicate label in the sighted case, so I'd prefer (if possible) to do what Everett and I worked out here...
Thanks everyone!
-Derek
Comment #6
mgiffordThis is still an issue after the d7 upgrade.
Comment #7
mgiffordAfter the upgrade this is a bit easier to do.
I'm not sure it's exactly what @dww was looking for, but let's get this in there and then find ways to improve it as necessary.
This fixes the accessibility problem and has no changes to the UI.
Comment #8
drummLooks good, except that
'#title' => 'Search'is missingt().Comment #9
mgiffordSorry Neil.. I should have just done that after I realized it. Here's a re-roll.
Comment #10
drummCommitted and deploying later today.
Comment #11
mgiffordThanks Neil! That's great...