Web: Shared: className prop was added to progress bar component
This commit is contained in:
parent
69b579521f
commit
ede3b2be5c
@ -35,6 +35,7 @@ const ProgressBar = ({
|
|||||||
percent,
|
percent,
|
||||||
label,
|
label,
|
||||||
isInfiniteProgress,
|
isInfiniteProgress,
|
||||||
|
className,
|
||||||
...rest
|
...rest
|
||||||
}: ProgressBarProps) => {
|
}: ProgressBarProps) => {
|
||||||
const progressPercent = percent > 100 ? 100 : percent;
|
const progressPercent = percent > 100 ? 100 : percent;
|
||||||
@ -53,6 +54,7 @@ const ProgressBar = ({
|
|||||||
</Text>
|
</Text>
|
||||||
<StyledProgressBar
|
<StyledProgressBar
|
||||||
{...rest}
|
{...rest}
|
||||||
|
className={className}
|
||||||
percent={progressPercent}
|
percent={progressPercent}
|
||||||
data-testid="progress-bar"
|
data-testid="progress-bar"
|
||||||
>
|
>
|
||||||
|
@ -31,4 +31,5 @@ export interface ProgressBarProps {
|
|||||||
label?: string;
|
label?: string;
|
||||||
/** Show infinite progress */
|
/** Show infinite progress */
|
||||||
isInfiniteProgress?: boolean;
|
isInfiniteProgress?: boolean;
|
||||||
|
className?: string;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user