Drawer Accessibility Testing
This page demonstrates the Drawer component for Lighthouse accessibility auditing. The basic drawer will open automatically and contains accessible elements.
import { useState, useEffect } from 'react' import { Drawer, DrawerTrigger, DrawerPortal, DrawerOverlay, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription, DrawerBody, DrawerFooter, DrawerClose, } from '../../../Drawer/Drawer' import { Button, ButtonType } from '../../../Button' import { useId } from 'react' const DrawerLightHouse = () => { const baseId = useId() const [open1, setOpen1] = useState(false) const [open2, setOpen2] = useState(false) const [open3, setOpen3] = useState(false) const [open4, setOpen4] = useState(false) // Open basic drawer automatically after a short delay to ensure page content is painted first // This allows Lighthouse to audit the drawer's accessibility features when it's open useEffect(() => { const timer = setTimeout(() => { setOpen1(true) }, 100) return () => clearTimeout(timer) }, []) return (
This page demonstrates the Drawer component for Lighthouse accessibility auditing. The basic drawer will open automatically and contains accessible elements.
Drawer content goes here.
Content for right drawer.