Not using the lightbox fullscreen - can't close when clicking outside #371
-
Hello! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I won't be able to answer your question as you forgot to share a code snippet demonstrating your customizations, but here is one way to implement the requirements you described. /* styles.css */
.yarl__root {
--yarl__color_backdrop: rgba(0, 0, 0, 0.3);
}
.yarl__slide_image {
outline: 2px solid white;
outline-offset: 4px;
} I hope this helps. |
Beta Was this translation helpful? Give feedback.
It doesn't work in conjunction with your customizations that you previously didn't share. It was just a shot in the dark.
Indeed, the customizations you implemented won't allow you to use the
closeOnBackdropClick
feature because the lightbox attaches pointer listeners to theyarl__container
DOM node; however, in your implementation, it doesn't cover the "backdrop" area.