dbrekalo / simpleLightbox

SimpleLightbox is lightweight and responsive lightbox library with no dependencies. Display images, galleries, videos or custom content and control your lightbox with easy to use api.
http://dbrekalo.github.io/simpleLightbox/
MIT License
270 stars 76 forks source link

Fix `prevBtnClass` + `nextBtnClass` configuration options #18

Open brandur opened 4 years ago

brandur commented 4 years ago

Currently, there isn't enough spacing between the default CSS classes for the next and previous buttons and a potential custom one, so if you use of them, the class names get truncated together and stop working like so:

<button ... class="next slbArrowmyCustomClass">

They should look like what the closeBtnClass above has with an extra trailing space so that all classes appear correctly separated like so:

<button ... class="next slbArrow myCustomClass">

Note: I didn't regenerate anything in dist/ (honestly, not sure how to off hand), so this just comes into what's in src/.