One lightbox at a time; proper dismiss of "read more" screen; proper in-progress draft HEIC images
This commit is contained in:
parent
01b015680b
commit
9ca9f743c3
7 changed files with 26 additions and 37 deletions
|
@ -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 && (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue