Skip to content

Commit

Permalink
fix(ExportModal): update status message
Browse files Browse the repository at this point in the history
  • Loading branch information
anamikaanu96 committed Sep 20, 2024
1 parent 3fc0afc commit ba871a9
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions packages/ibm-products/src/components/ExportModal/ExportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,16 @@ export let ExportModal = forwardRef(
)}
</>
)}
<div className={`${blockClass}__messaging`}>
<div aria-live="polite" className={`${blockClass}__messaging`}>
{loading && (
<>
<Loading small withOverlay={false} />
<p aria-live="assertive">{loadingMessage}</p>
<Loading
aria-live="off"
description=""
small
withOverlay={false}
/>
<p>{loadingMessage}</p>
</>
)}
{successful && (
Expand All @@ -319,7 +324,7 @@ export let ExportModal = forwardRef(
size={16}
className={`${blockClass}__checkmark-icon`}
/>
<p aria-live="assertive">{successMessage}</p>
<p>{successMessage}</p>
</>
)}
{error && (
Expand All @@ -328,7 +333,7 @@ export let ExportModal = forwardRef(
size={16}
className={`${blockClass}__error-icon`}
/>
<p aria-live="assertive">{errorMessage}</p>
<p>{errorMessage}</p>
</>
)}
</div>
Expand Down

0 comments on commit ba871a9

Please sign in to comment.