Accessible360 / accessible-slick

the last (accessible) carousel you'll ever need.
https://accessible360.github.io/accessible-slick
MIT License
254 stars 45 forks source link

Pause button should not be there if only one item #47

Closed jpyrat closed 1 year ago

jpyrat commented 2 years ago

Hi,

I use slick with a CMS that insert the slick slider with autoplay: true

Sometimes, there is only 1 slide to display. In this case, the play/pause button is useless and confusing.

setsqr commented 2 years ago

+1 on this.

The default behaviour for Slick seems to be that the prev/next buttons and pagination dots mark-up is only injected into the DOM when needed and removed when it's not. It would be great if the pause/play button followed the same logic as there doesn't seem to be a good way of targeting its display via just CSS.

supersonic1999 commented 1 year ago

agree also