Splidejs / splide

Splide is a lightweight, flexible and accessible slider/carousel written in TypeScript. No dependencies, no Lighthouse errors.
https://splidejs.com
MIT License
4.89k stars 424 forks source link

Custom arrows aren't dispositioned and grayed out #1131

Open guyman20 opened 1 year ago

guyman20 commented 1 year ago

Checks

Version

4.1.3

Description

Following the instructions for creating custom arrows isn't working well. The css of the automatically created arrows are applied to my custom arrows, moving them around (by applying them an absolute position) and coloring them in gray.

Reproduction Link

https://codepen.io/guyman20/pen/gOdqPWa?editors=1010

Steps to Reproduce

The base for the codepen was an older version code, I did some minor changes so it might have some bugs, but the point is the custom arrows. As can be seen, they are forced to be in the center of the slider as opposed to above it, and they are forced to have a gray background.

Expected Behaviour

As can be seen, they are forced to be in the center of the slider as opposed to above it, and they are forced to have a gray background.

kristiansp commented 1 year ago

I got it working for me. You might need to check this part of the docs: https://splidejs.com/guides/options/#classes

The short story is that you should add your own custom CSS classes in addition to the Solide classes.