W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2017

Re: pulldown issue questions (resend)

From: Patrick H. Lauke <redux@splintered.co.uk>
Date: Sat, 18 Feb 2017 11:45:59 +0000
Cc: WAI Interest Group <w3c-wai-ig@w3.org>, Amanda Lacy <lacy925@gmail.com>
Message-Id: <6FDB30F2-5C7C-4F3A-BA3A-4A2FE73B06A4@splintered.co.uk>
To: Rich Morin <rdm@cfcl.com>
What you have there is not a "pulldown menu", but a <select> form control. alt+arrow down is the standard keyboard interaction to open these. On a more general point, you should not really be using selects with onchange behavior. At least, remove the onchange behaviour, add an explicit form submit button, and hook the JS logic to the form submission. Or implement a proper ARIA-fied menu construct, as mentioned already.

P

--
Patrick H. Lauke


> On 18 Feb 2017, at 00:01, Rich Morin <rdm@cfcl.com> wrote:
> 
> I have some pulldown menus that don't open for Amanda when she hits the
> "space" bar in NVDA.  Instead, she has to use alt-down_arrow.  I'd like
> to know if there is some ARIA goodness I should be incuding in my HTML.
> 
> FWIW, I'm using jQuery to respond to events, reload options, etc.  See
> below for a code extract.
> 
> -r
> 
> <script>
> $(function() {
>   var h0 = { 'pm_list': [ "epub" ] };
>   $('#axap_options_menu').load('/Options', h0);
> 
>   $('#axap_options_menu').change(
>     function(event) {
>       /* Get selection info for pulldown menu. */
>       var pm_val = $(event.target).val();
>       var pm_var = $('option:selected', this).attr('id');
> ...
> 
> <div id='axap_options_pane'>
> <label for='axap_options_menu'><b>Options:</b></label>&nbsp;
> <select id='axap_options_menu' name='axap_options'></select>
> </div>
> 
> -- 
> http://www.cfcl.com/rdm           Rich Morin           rdm@cfcl.com
> http://www.cfcl.com/rdm/resume    San Bruno, CA, USA   +1 650-873-7841
> 
> Software system design, development, and documentation
> 
> 
> 
Received on Saturday, 18 February 2017 11:46:30 UTC

This archive was generated by hypermail 2.3.1 : Saturday, 18 February 2017 11:46:31 UTC