1. The icon's text label should be set to something other than "...".
Perhaps there is a way of setting this?
2. The icon should be in the tab order, and it should just follow the date
picker's input field - i.e. if your focused on the input field and press
tab, you should be focused on the icon.
3. The calendar is appended to the document body when it is opened. This is
not good for screen reader users because it isn't generally "near" the date
picker's input field. I see this pattern in other jquery-ui widgits as well
such as dialog. If at all possible, put the code for the calendar just after
the input field and icon trigger (if it is turned on) in the DOM. Ditto for
dialogs - place the dialog code just following the trigger which invoked it
if at all possible. Its probably a huge pain to do this, but it makes
things far easier on screen reader users who often don't even know that
something has been added to the dom.
-- Rich
--
You received this message because you are subscribed to the Google Groups "jQuery Accessibility" group.
To post to this group, send email to jquer...@googlegroups.com.
To unsubscribe from this group, send email to jquery-a11y...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jquery-a11y?hl=en.
I suggest this pattern when adding stuff to the end of the body. If you
click the "ad / remove div" button, the container is added and the screen
reader will not speak its contents. In the date picker for instance, you'd
add the calendar here.
When you click the "add / remove heading text" button, the h2 just
preceeding the just-added paragraph of text will be filled in and since it
has aria-live="assertive" set on it, it should be spoken.
Of course, there is a catch. If we perform these operations sequentially,
the screen reader does not have enough time to register the change in the
dom and thus the existence of the live region to then speak the heading text
when it is added. So, we must put a delay between the time the outer
container div is added and when the live region is then filled in with text.
My trials seem to suggest 150 milliseconds is adequate, but who really
knows. The "add / remove both" button exercises this test.
The other catch is that NVDA does not respond at all to any of this. Why
not!! It remains silent no matter which test I run.
All tests work with both Jaws10 and Jaws11.
-- Rich
----- Original Message -----
From: "Rich Caloggero" <r...@MIT.EDU>
To: <jquer...@googlegroups.com>
Sent: Tuesday, April 13, 2010 10:39 PM
Subject: Re: Datepicker
What am I missing?
-- Rich
-- Rich
jquer...@googlegroups.com<mailto:jquer...@googlegroups.com>.
To unsubscribe from this group, send email to
jquery-a11y...@googlegroups.com<mailto:jquery-a11y%2Bunsu...@googlegroups.com>.
Its kind of sad to have to keep trying to work around screen reader bugs and
ruin such clean code with mess. On ethought would be to add some sort of
option which could be enabled for widgits which append code like this to
alert screen readers. Seems to me that it could even be some sort of jQuery
plugin or written in such a way as to not clog up the main code, and could
then be available to use in multiple contexts. Eventually, screen readers
will get this stuff right, and this kind of messing around shouldn't be
needed (he says - trying to be optomistic).