akiran / react-slick

React carousel component
http://react-slick.neostack.com/
MIT License
11.61k stars 2.09k forks source link

Update slick-theme.css #2281

Closed Ayush472 closed 5 months ago

Ayush472 commented 9 months ago

I am having an issue where I am trying to disable the prev and next button by applying the css. But the css we are applying is not working and after having a glance at your plugin code we found that it is applied to ::before and ::after pseudo elements. we want you to update the css to apply on disbled class (without pseudo) as demonstrated below:

remove below: .slick-prev.slick-disabled:before, .slick-next.slick-disabled:before { opacity: .25; }

add the following: .slick-disabled{ filter: grayscale(1); }

akiran commented 5 months ago

These css files are only for our docs.

You should use slick-carousel package for CSS in your projects