WPChill / strong-testimonials

A WordPress plugin for client testimonials.
GNU General Public License v3.0
21 stars 11 forks source link

make the slider's buttons accessible #299

Open mplusb opened 2 years ago

mplusb commented 2 years ago

Is your feature request related to a problem? Please describe. I’m trying to make my sites as Accessible as possible. I’ve noticed that the Play/Pause button is an empty anchor. When I tab through the slider, I’m not able to activate the Play/Pause button.

Is there something I can do to make this more Accessible. Or something you could do? The Play/Pause should be a button and not a link, since it’s creating an action on the page and not linking to another page. Would that help?

<button class="play pause" aria-label="Stop automatic slide show

<button class="play pause" aria-label="Start automatic slide show

I referenced this article: https://www.w3.org/TR/wai-aria-practices-1.1/examples/carousel/carousel-1.html?moreaccessible

For now, I’m just hiding the Play/Pause link with CSS.

Additional context https://wordpress.org/support/topic/is-the-pause-button-accessible/

IntrepidRealist commented 2 years ago

I'm following this!