One lightbox at a time; proper dismiss of "read more" screen; proper in-progress draft HEIC images

This commit is contained in:
Scott Nonnenberg 2021-09-02 12:35:23 -07:00 committed by GitHub
parent 01b015680b
commit 9ca9f743c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 26 additions and 37 deletions

View file

@ -56,6 +56,9 @@ export function Modal({
return (
<ModalHost noMouseClose={noMouseClose} onClose={onClose} theme={theme}>
{/* We don't want the click event to propagate to its container node. */}
{/* eslint-disable jsx-a11y/no-static-element-interactions */}
{/* eslint-disable jsx-a11y/click-events-have-key-events */}
<div
className={classNames(
getClassName(''),
@ -63,7 +66,12 @@ export function Modal({
hasStickyButtons && getClassName('--sticky-buttons')
)}
ref={modalRef}
onClick={event => {
event.stopPropagation();
}}
>
{/* eslint-enable jsx-a11y/no-static-element-interactions */}
{/* eslint-enable jsx-a11y/click-events-have-key-events */}
{hasHeader && (
<div className={getClassName('__header')}>
{hasXButton && (