BrightspaceUILabs / file-uploader

Polymer-based web component for D2L file uploader
Apache License 2.0
4 stars 6 forks source link

Labelling may be insufficient for a11y #26

Closed dlockhart closed 7 years ago

dlockhart commented 7 years ago

@nicolebezaire FYI

Currently the file uploader has a single label tied to the file input. It reads either "browse" or "browse files" depending on the responsive breakpoint that's currently active.

Out of context, this could be insufficient when a screen reader user is looking at a list of form input fields -- especially the "browse" form.

This will likely need some design help for a solution. Possible options:

Finally, in the larger viewport mode, the label "browse" may still be insufficiently descriptive. Browse for what? The smaller viewport "browse files" is better.

dbatiste commented 7 years ago

Re the options: watch out for a11y issues referencing elements outside the shadow-DOM via aria-describedby. Rob did a recent a11ycast video on this - I think one of the recommended approaches was your second option. :)

dlockhart commented 7 years ago

Good catch @dbatiste! You're referring to this one and agreed.

dbatiste commented 7 years ago

That's the one! :)

nicolebezaire commented 7 years ago

Overall, sounds like a good idea to make those inputs more descriptive, esp. given variety of ways you can navigate with a screen reader (and to your second point, would aid understanding if "browse" is too ambiguous on its own). I would leave that additional descriptive label up to each team, since it will be very context-specific.

dlockhart commented 7 years ago

Fixed!