react-slick icon indicating copy to clipboard operation
react-slick copied to clipboard

Auto Play - Clicked Dots Remains active

Open georgeneil opened this issue 5 years ago • 11 comments

In the Auto Play demo page (https://react-slick.neostack.com/docs/example/auto-play-methods). When we click on a dot, the user is getting a feeling like two dots are active. Why are we having this behaviour ?

image

georgeneil avatar Nov 23 '18 10:11 georgeneil

will be fixing this in my pull request.

shivamraj avatar Dec 05 '18 09:12 shivamraj

this can be fixed with css

.slick-dots li button:focus:before { opacity: 0.25; }
.slick-dots li.slick-active button:focus:before,  .slick-dots li button:hover:before { opacity: 1; }

Sergezdv avatar Aug 19 '19 21:08 Sergezdv

This problem has not been fixed yet?

grace618 avatar Aug 10 '20 08:08 grace618

this can be fixed with css

.slick-dots li button:focus:before { opacity: 0.25; }
.slick-dots li.slick-active button:focus:before,  .slick-dots li button:hover:before { opacity: 1; }

It can't work on android

MingRay98 avatar Mar 02 '21 02:03 MingRay98

Any ideas?

sania1801 avatar Aug 23 '21 20:08 sania1801

Is there a fix for this yet? or a workaround?

this does not work for me: .slick-dots li button:focus:before { opacity: 0.25; } .slick-dots li.slick-active button:focus:before, .slick-dots li button:hover:before { opacity: 1; }

YudhaSy avatar Apr 27 '22 15:04 YudhaSy

it works for me

.slick-dots li button:before { opacity: 0.25; } .slick-dots li button:focus:before { opacity: 0.25 !important; } .slick-dots li.slick-active button:focus:before { opacity: .75 !important; }

Hsu-Linda avatar Jan 11 '23 06:01 Hsu-Linda

it works for me

.slick-dots li button:before { opacity: 0.25; } .slick-dots li button:focus:before { opacity: 0.25 !important; } .slick-dots li.slick-active button:focus:before { opacity: .75 !important; }

I had to add

.slick-dots li.slick-active button:before { opacity: .75 !important; }

to make it work (when clicking on a dot). Thank you, anyway

sergiher avatar Apr 04 '23 14:04 sergiher

You can try .slick-dots li button:before { opacity: 1; color: rgba(0, 0, 0, 0.25); } .slick-dots li.slick-active button:before { color: #000; }

ngvadait avatar May 17 '23 07:05 ngvadait

I think this issue is already resolved

AshwinNema avatar Mar 22 '24 05:03 AshwinNema

.slick-dots li button:before { opacity: 0.25; } .slick-dots li button:focus:before { opacity: 0.25 !important; } .slick-dots li.slick-active button:focus:before { opacity: 0.75 !important; } .slick-dots li.slick-active button:before { opacity: 0.75 !important; }

jacobdarvin avatar Mar 31 '24 12:03 jacobdarvin