Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force arrows to show (even in a disabled state) #1474

Open
tbehunin opened this issue Jan 2, 2019 · 3 comments
Open

Force arrows to show (even in a disabled state) #1474

tbehunin opened this issue Jan 2, 2019 · 3 comments

Comments

@tbehunin
Copy link

tbehunin commented Jan 2, 2019

When the width of the track can fit all the slides, the arrows disappear. I'd like to be able to force the arrows to be visible always, whether disabled or not.

Here's a demo that has one slide and the arrows are missing:
https://codesandbox.io/s/zljkw3x09x

If I add more slides, the arrows show up. My goal is to always display the arrows (they would be disabled if they can't navigate left and/or right). How can I do that?

@Romcol
Copy link

Romcol commented Dec 12, 2019

Hi,

It's actually pretty easy. You need to override css for "slick-disabled" class.
Or you can define custom arrows with your own CSS (https://react-slick.neostack.com/docs/example/custom-arrows) 😉

@PathFinder5196
Copy link

PathFinder5196 commented Oct 23, 2020

@Romcol This solution is not working

@aamin21
Copy link

aamin21 commented Jul 23, 2021

The arrows are not even rendered, so can't use slick-disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants