Does adding a custom icon for the carousel icon only affect the fullscreen version? #296
-
Hello, I've added custom prevIcon and nextIcon svgs to the render function, but it only seems to change the arrows in the full screen carousel when I click into the image. The svg icons on the actual carousel within the page are unchanged. Do those use a different icon call? I tried buttonNext and buttonPrev but those didn't work either. render={{
buttonPrev: photos.length <= 1 ? () => null : undefined,
buttonNext: photos.length <= 1 ? () => null : undefined,
iconPrev: () => <LeftArrow />,
iconNext: () => <RightArrow />,
}} |
Beta Was this translation helpful? Give feedback.
Answered by
igordanchenko
Aug 1, 2024
Replies: 1 comment 3 replies
-
I also tried this render={{
iconPrev: () => <LeftArrow />,
iconNext: () => <RightArrow />,
buttonPrev: photos.length <= 1 ? () => null : <LeftArrow />,
buttonNext: photos.length <= 1 ? () => null : <RightArrow />,
}} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Tcox-int without seeing a reproducible example, I can only assume you are using 2
Lightbox
instances, so you need to specify custom icons in both.