FLUID-2936
Alison Benjamin
alison.benjamin at gmail.com
Thu Jul 9 19:50:56 UTC 2009
Hi,
This is a patch Colin and I have put together to address
http://issues.fluidproject.org/browse/FLUID-2936
This improves the indications a JAWS user will get about progress. It
doesn't solve the problem of the user needing an indication of when progress
is done. We suspect this problem lies with JAWS. Testing with another screen
reader like orca, which also has ARIA support, could help isolate the
issue...
Thanks,
Alison
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.idrc.ocad.ca/pipermail/fluid-work/attachments/20090709/713066cb/attachment.htm>
-------------- next part --------------
Index: webapp/components/progress/js/Progress.js
===================================================================
--- webapp/components/progress/js/Progress.js (revision 7545)
+++ webapp/components/progress/js/Progress.js (working copy)
@@ -84,11 +84,10 @@
};
var initARIA = function (ariaElement) {
+ // aria-live and aria-busy are not necessary
ariaElement.attr("role", "progressbar");
ariaElement.attr("aria-valuemin", "0");
ariaElement.attr("aria-valuemax", "100");
- ariaElement.attr("aria-live", "assertive");
- ariaElement.attr("aria-busy", "false");
ariaElement.attr("aria-valuenow", "0");
ariaElement.attr("aria-valuetext", "");
};
@@ -98,10 +97,10 @@
that.ariaElement.attr("aria-busy", busy);
that.ariaElement.attr("aria-valuenow", percent);
if (busy) {
- var busyString = fluid.stringTemplate(that.options.ariaBusyText, {percentComplete : percent});
+ var busyString = fluid.stringTemplate(that.options.ariaBusyText, {percentComplete : percent});
that.ariaElement.attr("aria-valuetext", busyString);
} else if (percent === 100) {
- that.ariaElement.attr("aria-valuetext", that.options.ariaDoneText);
+ that.ariaElement.attr("aria-valuetext", that.options.ariaDoneText); // we suspect there is an issue with JAWS not providing a "Progress is complete" message to the user.
}
};
Index: webapp/standalone-demos/progress/js/progress-sample.js
===================================================================
--- webapp/standalone-demos/progress/js/progress-sample.js (revision 7332)
+++ webapp/standalone-demos/progress/js/progress-sample.js (working copy)
@@ -49,14 +49,14 @@
anIllusionOfProgress(aProgress, percent, steps);
});
} else {
- myProgress.hide(2000);
+ // myProgress.hide(2000);
}
};
var bindButtonHandlers = function () {
$("#showButton").click(function () {
- anIllusionOfProgress(myProgress, 0, 20);
+ anIllusionOfProgress(myProgress, 0, 200);
$("#showButton").blur();
});
};
More information about the fluid-work
mailing list