mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-18 08:43:57 +00:00
refactor(fullscreen-media-modal): replace div with dialog element for improved semantics
This commit is contained in:
@@ -65,7 +65,7 @@ export function FullscreenMediaModal({
|
||||
|
||||
return createPortal(
|
||||
<Backdrop>
|
||||
<div className="fullscreen-media-modal" role="dialog" aria-label={alt}>
|
||||
<dialog className="fullscreen-media-modal" open aria-label={alt}>
|
||||
<button
|
||||
type="button"
|
||||
onClick={onClose}
|
||||
@@ -81,7 +81,7 @@ export function FullscreenMediaModal({
|
||||
>
|
||||
<img src={src} alt={alt} className="fullscreen-media-modal__image" />
|
||||
</div>
|
||||
</div>
|
||||
</dialog>
|
||||
</Backdrop>,
|
||||
document.body
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user