Patch to add aria labels to SelectionBox arrow buttons
Keith Creasy <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.request-tracker.devel |
|---|---|
| Message-ID | <[email protected]> |
Screen readers such as "JAWS" and "NVDA" that provide access to web pages for blind users do not read the arrow buttons on the selection box. This patch adds aria-label attributes "Add", "Move up", and "Move down" to assist them. -- RT Training - Boston, September 9-10 http://bestpractical.com/training
0001-Added-aria-label-attributes-in-SelectionBox-to-help-.patch
(application/octet-stream, 1.5 KB)
From 95e098dddd73657993ddf61957438b73250a5d5c Mon Sep 17 00:00:00 2001 From: Keith Creasy <[email protected]> Date: Mon, 30 Jun 2014 13:32:39 -0400 Subject: [PATCH] Added aria-label attributes in SelectionBox to help screen readers speak the Add, Move up, and Move down buttons. --- share/html/Widgets/SelectionBox | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 share/html/Widgets/SelectionBox diff --git a/share/html/Widgets/SelectionBox b/share/html/Widgets/SelectionBox old mode 100644 new mode 100755 index a6d1e78..e0fc497 --- a/share/html/Widgets/SelectionBox +++ b/share/html/Widgets/SelectionBox @@ -176,7 +176,7 @@ $self => undef </select> % unless ($self->{ReadOnly}) { -<input name="add" type="submit" class="button" value=" → " /> +<input aria-label="Add" name="add" type="submit" class="button" value=" → " /> % } <select name="<%$name%>-Selected" id="<%$name%>-Selected" size="<%$size%>" multiple="multiple"> @@ -190,8 +190,8 @@ selected="selected" </select> % unless ($self->{'ReadOnly'}) { % unless ($ARGS{'NoArrows'}) { - <input name="moveup" type="submit" class="button" value=" ↑ " /> - <input name="movedown" type="submit" class="button" value=" ↓ " /> + <input aria-label="Move up" name="moveup" type="submit" class="button" value=" ↑ " /> + <input aria-label="Move down" name="movedown" type="submit" class="button" value=" ↓ " /> % } <input name="remove" type="submit" class="button" value="<&|/l&>Delete</&>" /> % if ($ARGS{'Clear'}) { -- 1.7.9.5