jsor / lity

Lightweight, accessible and responsive lightbox.
https://sorgalla.com/lity/
MIT License
1.16k stars 196 forks source link

Lity Close Button Not Clickable #210

Open rubyreddelicious opened 5 years ago

rubyreddelicious commented 5 years ago

I'm having problems with Lity close button functionality, I believe due to a conflict with my site's menu. If I hide the menu with CSS, the close button works like a charm, but somehow the menu is getting in the way. No console errors or anything when I try to click the X. I thought maybe upping the CSS z-index would help, but no luck there. I've noticed a CSS class of "lity-hidden" has been added to this menu somehow (along with many other elements on the page) though I'm not sure why or if that's relevant.

I'm using Lity pretty much straight out of the box -- I unpacked the files and added "data-lity" to the one type of link I wanted a lightbox on. That's it aside from adjusting the CSS position (which still worked fine with the menu hidden). Am I doing something silly wrong here? Thanks in advance for any help out!

Edit: Site in question is https://muirseattle.com/apartments (Lity links are all those that say "VIEW FLOORPLAN" in the table midway down the page).

adam-jones-net commented 4 years ago

Can you delete this? Your link seems to not work and I assume you resolved/scrapped this code ?