WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Links and Spacebar


From: Marshall Sunnes
Date: Feb 4, 2020 2:23PM

Hi Glen,
Thanks for outlining the confusion point.
Quoting from my first message: "The basic issue I find is that if a user
sees something that looks like a button, then it should work with the
spacebar for keyboard-only users."

When a developer uses CSS to make links look like buttons, then the
question is around if the developer needs to make that link behave more
like a button. Otherwise, the user sees something that looks like a
button and just will learn through trial and error if Spacebar will
actually work.


On Tue, Feb 4, 2020 at 2:31 PM glen walker < <EMAIL REMOVED> > wrote:

> I'm confused. You originally asked about enter/space for LINKS but your
> response below talks about BUTTONS. Yes, the authoring practice says both
> enter and space should activate a button. No one is disputing that.
> The big discussion was whether space should activate a link and why that's
> not recommended. The authoring practice says that only enter should
> activate a link (
> https://urldefense.proofpoint.com/v2/url?u=https-3A__www.w3.org_TR_wai-2Daria-2Dpractices_-23link&d=DwICAg&c=slrrB7dE8n7gBJbeO0g-IQ&r=cXj9zeYcj_L9F2wRWNJV-Q&m=4lCjSeb8_X8qMQZkkF-Q9kag-UApaADEHT2_J3D8TPk&s=AUAlsCM00qCNSNoHawlpxaKrjZ59OdeHlzzs6vzO28U&e=
> ).
> On Tue, Feb 4, 2020 at 11:13 AM Marshall Sunnes < <EMAIL REMOVED> >
> wrote:
> > Thanks, Sean. Completely agree with you. My concern was around those who
> do
> > not use screen readers (i.e. keyboard only). The ARIA Authoring Practices
> > recommend that Enter and Spacebar be able to trigger a button.
> >
> > Best,
> > Marshall
> >
> >
> > > https://urldefense.proofpoint.com/v2/url?u=http-3A__list.webaim.org_&d=DwICAg&c=slrrB7dE8n7gBJbeO0g-IQ&r=cXj9zeYcj_L9F2wRWNJV-Q&m=4lCjSeb8_X8qMQZkkF-Q9kag-UApaADEHT2_J3D8TPk&s=t-dJxSrpVL7GJ1lP4_Pfk1c3-NbPYyjLoSCFg61mqNY&e=
> List archives at
> https://urldefense.proofpoint.com/v2/url?u=http-3A__webaim.org_discussion_archives&d=DwICAg&c=slrrB7dE8n7gBJbeO0g-IQ&r=cXj9zeYcj_L9F2wRWNJV-Q&m=4lCjSeb8_X8qMQZkkF-Q9kag-UApaADEHT2_J3D8TPk&s=IR90t5qsEioKWyLZNcqpex0uY42hIX2yJk3DXcIfki0&e=
> >

*Marshall Sunnes*
*Senior Digital Accessibility Specialist*
NYU IT <https://www.nyu.edu/life/information-technology.html>
New York University
Phone: (212) 998 4417 <+12129984417>