Download & Extend

Accessibility of the upload

Project:FileField
Version:6.x-3.2
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Recently went through an accessibility review, this was the comments on filefield.

When tabbing through this form, one of the controls is labeled
"browse". Nowever, it is not clear that this means "browse for icon file".
The screen reader user only hears the label of the field that gains focus
when tabbing, so she will not be aware of surrounding text when in this
mode.

The best way of fixing this is to use a html fieldset. Surround all of the
icon related fields with a fieldset, and set the legend to "icon". Now,
when the screen reader user tabs to one of the upload fields, she will
hear the content of the legend element, followed by the label of the
field which gains focus ("browse", or "upload").

Mostly a FYI

Comments

#1

Category:feature request» support request
Status:active» closed (fixed)

Hmm, might want to talk to your accessibility review people. The "Browse..." text is provided by the Web Browser and is not controllable by FileField (or any other HTML) unless you do a series of fancy JavaScript modifications (which tends to result in more problems). See http://www.quirksmode.org/dom/inputfile.html

#2

Category:support request» feature request
Status:closed (fixed)» active

Oh, I misunderstood (and didn't read the second paragraph). This is certainly a valid request. Things get a little difficult because CCK is in control of multi-value fields, but FileField may be able to handle this itself for single file uploads. We actually used to use a fieldset in Drupal 5, but we removed that to closer emulate the visual appearance of other elements in the form. I'll see what kind of options we have for fixing this.

#3

Status:active» fixed

Here's as much as we can do in the FileField queue. It's a simple fix, simply make our label tag point to the upload field so that it makes some sense. I've filed a matching issue over in the CCK queue to correct the same problem with multi-value fields: #780434: Improve accessibility of multi-value fields.

AttachmentSize
filefield_upload_accessiblity.patch 628 bytes

#4

I also committed a matching patch for ImageField.

#5

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.