(
role="progressbar"
aria-valuemax={max}
aria-valuemin={min}
- aria-valuenow={Math.round(value)}
+ aria-valuenow={value === undefined ? undefined : Math.round(value)}
{...rest}
>
-
- {bufferValue > 0 ? (
+
+ {bufferValue && bufferValue > 0 ? (
) : null}
{!hideLabel && (
- {`${Math.round(progress)} %`}
+ {isIndeterminate ? `— %` : `${Math.round(progress)} %`}
)}
diff --git a/packages/core/stories/progress/linear-progress.stories.tsx b/packages/core/stories/progress/linear-progress.stories.tsx
index 08c7d0b92e3..c0fc6d7b9e1 100644
--- a/packages/core/stories/progress/linear-progress.stories.tsx
+++ b/packages/core/stories/progress/linear-progress.stories.tsx
@@ -1,11 +1,11 @@
-import { Meta, StoryFn } from "@storybook/react";
import {
Button,
- FlowLayout,
- StackLayout,
CircularProgress,
+ FlowLayout,
LinearProgress,
+ StackLayout,
} from "@salt-ds/core";
+import { Meta, StoryFn } from "@storybook/react";
import { useProgressingValue } from "./useProgressingValue";
import "./progress.stories.css";
@@ -91,3 +91,5 @@ export const ProgressingValue: StoryFn