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

RE: Accessible styled form select

From: Bryan Garaventa <bryan.garaventa@ssbbartgroup.com>
Date: Sat, 18 Feb 2017 05:53:41 +0000
To: Matt King <a11ythinker@gmail.com>, "'Beranek, Nicholas'" <Nicholas.Beranek@capitalone.com>, "'Lisette Arocha (US - Advisory)'" <lisette.m.arocha@pwc.com>, "w3c-wai-ig@w3.org" <w3c-wai-ig@w3.org>
Message-ID: <BN6PR03MB2785BCA243D574DDAF0EACB1985C0@BN6PR03MB2785.namprd03.prod.outlook.com>
If it’s of help, I wrote the following blog post back in 2013 that illustrates how the pieces of making a widget like a Listbox works, and the two supported methods for making this function properly. All of the data is still valid.

All the best,

Bryan Garaventa
Accessibility Fellow
SSB BART Group, Inc.
415.624.2709 (o)

From: Matt King [mailto:a11ythinker@gmail.com]
Sent: Friday, February 17, 2017 6:44 PM
To: 'Beranek, Nicholas' <Nicholas.Beranek@capitalone.com>; 'Lisette Arocha (US - Advisory)' <lisette.m.arocha@pwc.com>; w3c-wai-ig@w3.org
Subject: RE: Accessible styled form select

In ARIA terms, an HTML select is much more like a listbox than a combobox. ARIA defines a combobox as the combination of an edit and another element to help set the value of the edit, such as a listbox. An HTML select does not include an edit field.

The listbox design pattern is much simpler. We have a draft with some examples, not yet fully vetted but still in pretty reasonable state at:

Please do not use the content in the deleted sections page of the master branch of authoring practices. We kept it in the github repository for reference by people working on the guide, but the content has been deleted because it was not adequately vetted and contains easily recognizable errors.

I plan to have a draft of the combobox pattern in review before the end of March.

Matt King

From: Beranek, Nicholas [mailto:Nicholas.Beranek@capitalone.com]
Sent: Wednesday, February 15, 2017 12:28 PM
To: Lisette Arocha (US - Advisory) <lisette.m.arocha@pwc.com<mailto:lisette.m.arocha@pwc.com>>; w3c-wai-ig@w3.org<mailto:w3c-wai-ig@w3.org>
Subject: RE: Accessible styled form select

Ah, the infamous Combo box widget. It depends on how much work you want to put into it. The design pattern within the WAI-ARIA authoring practices can be found at the following link: https://rawgit.com/w3c/aria-practices/master/aria-practices-DeletedSectionsArchive.html#combobox

There is an open issue on Github for that pattern to revamp it at the following link: https://github.com/w3c/aria-practices/issues/31

It is a complicated widget. I do recommend maintaining a native SELECT, but you can keep it hidden beneath a button. When the button is activated, we display the listbox within the SELECT menu. It allows for you to have that initial style you want, but gives you that default keyboard functionality that you’d otherwise need using JavaScript.

The following link is an example of the design pattern I just mentioned: http://www.456bereastreet.com/lab/custom-select/

The only problem I can see with the combo box example is the fact that when you open the Listbox and then close it, the visual focus indicator doesn’t display even though <select> has focus. You would expect the indicator to show each time it receives focus.

Let me know if I can help you further!

Capital One

From: Lisette Arocha (US - Advisory) [mailto:lisette.m.arocha@pwc.com]
Sent: Tuesday, February 14, 2017 10:11 AM
To: w3c-wai-ig@w3.org<mailto:w3c-wai-ig@w3.org>
Subject: Accessible styled form select

In my work as a front end developer I encourage clients to use the native select field but I still have clients that want to have custom styled selects which means I would need to style a list and have it control the select hidden on the page.

Curious if anyone has resources or a plugin that shows how to do this in a way that is fully accessible.


Lisette Arocha
PwC | Experience Center | Senior Associate, Technology
Direct: 786-427-6894 <tel:786-427-6894>  | Mobile: (954)296-5792<tel:954-296-5792>

Email: lisette.m.arocha@pwc.com <mailto:lisette.m.arocha@pwc.com>
PricewaterhouseCoopers LLP
600 Silks Run, Suite 2210, Hallandale Beach, FL 33009

The information transmitted, including any attachments, is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited, and all liability arising therefrom is disclaimed. If you received this in error, please contact the sender and delete the material from any computer. PricewaterhouseCoopers LLP is a Delaware limited liability partnership. This communication may come from PricewaterhouseCoopers LLP or one of its subsidiaries.


The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
Received on Saturday, 18 February 2017 05:54:19 UTC

This archive was generated by hypermail 2.3.1 : Saturday, 18 February 2017 05:54:22 UTC