fix: react-doctor modal/dialog/dropzone a11y — 18 files to role+tabIndex+onKeyDown or dialog
This commit is contained in:
@@ -78,10 +78,7 @@ export function MoreSheet({ open, onClose }: MoreSheetProps) {
|
||||
return (
|
||||
<dialog
|
||||
ref={dialogRef}
|
||||
onClick={(e) => {
|
||||
// Click on the backdrop (the dialog element itself) closes; clicks on content don't
|
||||
if (e.target === dialogRef.current) onClose();
|
||||
}}
|
||||
aria-label="More navigation"
|
||||
className="w-full max-w-[640px] p-0 m-0 ml-auto h-full max-h-screen backdrop:bg-black/40"
|
||||
style={{
|
||||
backgroundColor: "var(--color-bg)",
|
||||
|
||||
Reference in New Issue
Block a user