WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Links and Spacebar

for

From: Murphy, Sean
Date: Feb 4, 2020 4:16PM


Marshall

I might be restating what others have already said.

If you have a link which is styled like a button. Then the developer must ensure the same behaviour for the sudo button supports the keyboard commands and role.

I would be strongly recommending they use the correct tag which removes all these headaches. Custom elements is the developer / UX / designer responsibility.

Sean
-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of Marshall Sunnes
Sent: Wednesday, 5 February 2020 8:23 AM
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: Re: [WebAIM] Links and Spacebar

[External Email] This email was sent from outside the organisation – be cautious, particularly with links and attachments.

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.

Best,
Marshall

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=cXj9ze
> Ycj_L9F2wRWNJV-Q&m=4lCjSeb8_X8qMQZkkF-Q9kag-UApaADEHT2_J3D8TPk&s=AUAls
> CM00qCNSNoHawlpxaKrjZ59OdeHlzzs6vzO28U&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_X
> 8qMQZkkF-Q9kag-UApaADEHT2_J3D8TPk&s=t-dJxSrpVL7GJ1lP4_Pfk1c3-NbPYyjLoS
> CFg61mqNY&e> List archives at
> https://urldefense.proofpoint.com/v2/url?u=http-3A__webaim.org_discuss
> ion_archives&d=DwICAg&c=slrrB7dE8n7gBJbeO0g-IQ&r=cXj9zeYcj_L9F2wRWNJV-
> Q&m=4lCjSeb8_X8qMQZkkF-Q9kag-UApaADEHT2_J3D8TPk&s=IR90t5qsEioKWyLZNcqp
> ex0uY42hIX2yJk3DXcIfki0&e= > <EMAIL REMOVED>
>


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