feat(SW-337): logic for accesible dialog title text for lightbox
This commit is contained in:
@@ -16,6 +16,7 @@ import type { GalleryProps } from "@/types/components/lightbox/lightbox"
|
||||
|
||||
export default function Gallery({
|
||||
images,
|
||||
dialogTitle,
|
||||
onClose,
|
||||
onSelectImage,
|
||||
onImageClick,
|
||||
@@ -58,7 +59,7 @@ export default function Gallery({
|
||||
<div className={styles.desktopGallery}>
|
||||
<VisuallyHidden asChild>
|
||||
<DialogTitle asChild>
|
||||
<VisuallyHidden>Image Gallery</VisuallyHidden>
|
||||
<VisuallyHidden>{dialogTitle}</VisuallyHidden>
|
||||
</DialogTitle>
|
||||
</VisuallyHidden>
|
||||
<div className={styles.galleryHeader}>
|
||||
|
||||
Reference in New Issue
Block a user