Skip to content

Scheduling infrastructure for absolutely everyone.

fix (a11y): Add aria-label to progressToast close button (#25618)

Rouh8cace7f7a063
diff --git a/packages/ui/components/toast/ProgressToast.tsx b/packages/ui/components/toast/ProgressToast.tsx
index 3d25cc1cd92..4ecaf3c350f 100644
--- a/packages/ui/components/toast/ProgressToast.tsx
+++ b/packages/ui/components/toast/ProgressToast.tsx
@@ -17,13 +17,13 @@ export const ProgressToast = ({ message, progress, onClose, toastId }: ProgressT
const defaultMessage = t("downloading");
return (
- <div className="animate-fade-in-up bg-subtle shadow-elevation-low border-subtle mb-2 flex h-auto flex-col stack-y-2 rounded-lg border px-3 py-2.5 text-sm font-semibold md:max-w-sm">
+ <div className="animate-fade-in-up bg-subtle shadow-elevation-low border-subtle stack-y-2 mb-2 flex h-auto flex-col rounded-lg border px-3 py-2.5 text-sm font-semibold md:max-w-sm">
<div className="flex items-center gap-2">
<span className="mt-0.5">
<Icon name="file-down" className="h-4 w-4" />
</span>
<p className="m-0 w-full text-left">{message || defaultMessage}</p>
- <button onClick={() => onClose(toastId)}>
+ <button onClick={() => onClose(toastId)} aria-label={t("close")}>
<Icon name="x" className="h-4 w-4 hover:cursor-pointer" />
</button>
</div>