Skip to content

Commit ed5953b

Browse files
committed
fix(decrypt): keep DecryptionProgress label accessible inside success banner
Switch from display:none to visually-hidden (clip) so the aria-live status region added in #242 still announces the Yivi → Decrypting transition while the banner message owns the visual messaging.
1 parent 259b034 commit ed5953b

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

src/routes/(app)/download/+page.svelte

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,19 @@
616616
padding: 0;
617617
}
618618
619+
/* Hide the visual label inside the success banner (the banner message
620+
above the bar conveys the same thing) but keep it accessible so the
621+
aria-live region still announces the decrypt transition. */
619622
.success-banner :global(.container .label) {
620-
display: none;
623+
position: absolute;
624+
width: 1px;
625+
height: 1px;
626+
padding: 0;
627+
margin: -1px;
628+
overflow: hidden;
629+
clip: rect(0, 0, 0, 0);
630+
white-space: nowrap;
631+
border: 0;
621632
}
622633
623634
.banner-check {

0 commit comments

Comments
 (0)