WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Standard form button action?

for

From: Birkir R. Gunnarsson
Date: Aug 25, 2017 1:16PM


How is the button coded? If it is a native HTML button (<button> or
<input type="submit"> or <input type="button"> I imagine it is a
Chrome bug (feature) if it only works with the spacebar.
The expected keyboard interaction is that you can activate it with
either enter or spacebar.
Last time I did a keyboard activation test in all the major browsers
it worked like that, bu that test was almost a year ago now and
updates do not always bring better accessibility.

If it is a custom button, enter key activation must be added.

If the submit button is actually disabled (grayed ou and does not work
with mouse), it does not have to be focusable.
<button disabled>Sign up<button>



On 8/25/17, Ryan E. Benson < <EMAIL REMOVED> > wrote:
> I would check if the form tag is used. A long time ago, if the submit was
> outside of the closing tag, you couldn't submit it via the keyboard
>
> Ryan E. Benson
>
> On Aug 25, 2017 10:19, "Preast, Vanessa" < <EMAIL REMOVED> > wrote:
>
>> I'm evaluating a form that has a submit button and a file upload button.
>>
>> Using keyboard in Chrome...
>>
>> I can activate the buttons with spacebar but not enter key. Is this
>> normal? Is this OK?
>>
>> Also, the submit button remains unselectable/unfocusable with keyboard
>> until certain required fields are completed. Is this OK?
>>
>> Thanks,
>> Vanessa
>> >> >> >> >>
> > > > >


--
Work hard. Have fun. Make history.