🎨 Palette: Improve Lightbox counter accessibility (#235)

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This commit is contained in:
Ralksta
2026-05-31 10:03:08 +02:00
committed by GitHub
parent 746e9ae4c9
commit a91269eb42
3 changed files with 12 additions and 8 deletions

View File

@@ -216,8 +216,13 @@ export function Lightbox({ assets, currentIndex, onClose, onNext, onPrev }: Ligh
</button>
{/* Counter */}
<div className={styles.counter}>
{currentIndex + 1} / {assets.length}
<div className={styles.counter} aria-live="polite" aria-atomic="true">
<span className="sr-only">
Photo {currentIndex + 1} of {assets.length}
</span>
<span aria-hidden="true">
{currentIndex + 1} / {assets.length}
</span>
</div>
{/* EXIF toggle */}