WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Required Aria Listbox


From: Birkir R. Gunnarsson
Date: Sep 30, 2019 6:31PM

If you want to use aria-required you have to go with the "scrollable
listbox implementation:


(do away with the button as the trigger, aria-required is valid on a
listbox role).

If you have to use a trigger button, there's always the less fancy
backup, visually hidden text/description.

On 9/30/19, Brian Lovely via WebAIM-Forum < <EMAIL REMOVED> > wrote:
> I don't think it's uncommon for a native HTML select to be a required field
> in a form, but how do you indicate that an ARIA listbox is required? You
> can't apply the aria-required attribute to the button.
> https://www.w3.org/TR/wai-aria-practices/examples/listbox/listbox-collapsible.html
> --
> *Brian Lovely*
> Capital One Digital Accessibility
> 804.389.1064
> >
> 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.
> > > > >

Work hard. Have fun. Make history.