issues
search
thekid
/
dialog
Dialog photoblog
2
stars
1
forks
source link
Lightbox improvements
#31
Open
thekid
opened
1 year ago
thekid
commented
1 year ago
[x] Use
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog
[x] Update JavaScript to use
<dialog open>
instead of
<div id="lightbox" class="open">
[ ] Prevent background scrolling - see
https://getbootstrap.com/docs/4.3/components/modal/
and
https://usefulangle.com/post/279/hide-page-scrollbar-when-fixed-modal-opened
[ ] Prevent layout shifts when hiding the scrollbar (adjust padding
as seen here
)
<dialog open>
instead of<div id="lightbox" class="open">