feat(SW-337): logic for accesible dialog title text for lightbox

This commit is contained in:
Chuma McPhoy
2024-09-09 15:03:37 +02:00
parent 852e817ab7
commit d92308b99d
12 changed files with 32 additions and 11 deletions
@@ -2,4 +2,5 @@ import type { ImageItem } from "@/types/components/lightbox/lightbox"
export type PreviewImagesProps = {
images: ImageItem[]
hotelName: string
}
+2
View File
@@ -6,11 +6,13 @@ export interface ImageItem {
export interface LightboxProps {
images: ImageItem[]
dialogTitle: string /* Accessible title for dialog screen readers */
children: React.ReactNode
}
export interface GalleryProps {
images: ImageItem[]
dialogTitle: string
onClose: () => void
onSelectImage: (image: ImageItem) => void
onImageClick: () => void