beyonk-group/svelte-carousel

Request: Disable prev/next controls

OllieJT opened this issue · 2 comments

Nice work on this!

Could we include an option for disabling controls similar to the dots? I've simply omitted them and they're causing errors in a lighthouse audit as the buttons do not have a discernable name.

For now I have disabled them through CSS, but I'm not sure this is ideal.

.slider__container{
    /* styles */
    :global(button) {
         display: none
    }
}

@OllieJT happy to take a PR if you have time!