Skip to content

Commit 76dc9a2

Browse files
committed
fix: improve ARIA attributes
1 parent d5ffdff commit 76dc9a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Portal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ export default function Portal({ children }: PropsWithChildren) {
120120
<div
121121
aria-modal
122122
role="dialog"
123-
aria-roledescription="carousel"
123+
aria-live="polite"
124+
aria-roledescription="lightbox"
124125
tabIndex={-1}
125126
ref={handleRef}
126127
style={styles?.portal}

0 commit comments

Comments
 (0)