WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Is screen-reader silence on button activation a failure? If so, what does it fail?

for

From: Jeremy Echols
Date: Sep 9, 2021 10:46AM


I agree, and in an ideal world we'd announce "17 items selected" or something. And make it a true toggle button. But at the moment, that kind of change isn't feasible. And the button is basically disconnected from the checkboxes - the button just turns everything to checked regardless of their current state. There's a "Select none" button that's basically the opposite, and just as annoying to fix.

I guess I know what *should* be done, but right now we're stuck remediating things as best we can, not making major changes.

My underlying question is really just whether this is a WCAG failure, and if so, what it fails. We're having to prioritize a huge number of accessibility problems and I'm trying to let the other devs know how big a deal this one is.

-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of Birkir R. Gunnarsson
Sent: Thursday, September 9, 2021 09:22
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: Re: [WebAIM] Is screen-reader silence on button activation a failure? If so, what does it fail?

Add an aria-pressed attribute to the button. Set its value to "true"
when button is pressed and checkboxes are checked.
Depending on what happens next, either:
set aria-pressed back to false if pressing the button with all checkboxes checked unchecks them again add aria-disabled="true" if pressing the button with all checkboxes checked does nothing.


On 9/9/21, Jeremy Echols < <EMAIL REMOVED> > wrote:
> We have a button to select all checkboxes in a list, similar to gmail
> where you want to select all conversations. The button tells you that
> it will select everything, so the user should know what to expect. But
> when the button is activated, nothing is announced to screen-reader
> users. Dead silence.
>
> The effect of the button is to simply change a bunch of checkboxes to
> be checked, and it performs that just fine. The page content doesn't
> change, and there is no visual alert to indicate that the button had
> any effect other than those checkboxes being checked instead of not
> checked. So I'm not sure if I pass this behavior or fail it.
>
> Any advice would be appreciated.
> > > https://urldefense.com/v3/__http://list.webaim.org/__;!!C5qS4YX3!R7Opx
> 7QPlhyumvqTihvrmhMv799gD8yGIN48uUyyzwCxoe8CIfn2NYxR5G7Fkf1nWw$
> List archives at
> https://urldefense.com/v3/__http://webaim.org/discussion/archives__;!!
> C5qS4YX3!R7Opx7QPlhyumvqTihvrmhMv799gD8yGIN48uUyyzwCxoe8CIfn2NYxR5G5lg
> Vhdkw$ >


--
Work hard. Have fun. Make history.