Skip to content

Commit a3407b6

Browse files
committed
fix: more accessibility improvements
1 parent c513f59 commit a3407b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Preview.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,9 @@ const ErrorPane = () => {
175175
*/}
176176
<div
177177
aria-hidden={true}
178-
role="alertdialog"
179178
className={cn(
180-
"absolute top-0 left-0 h-full w-full transition-all",
181-
$errors.show && "bg-black/20 dark:bg-black/50",
179+
"absolute top-0 left-0 hidden h-full w-full transition-all",
180+
$errors.show && "block cursor-pointer bg-black/20 dark:bg-black/50",
182181
)}
183182
onClick={() => {
184183
$toggleShowError(false);
@@ -188,6 +187,7 @@ const ErrorPane = () => {
188187
</div>
189188

190189
<div
190+
role="alertdialog"
191191
className={cn(
192192
"absolute bottom-0 left-0 w-full",
193193
$errors.show && "h-auto",

0 commit comments

Comments
 (0)