Skip to content

Commit 2ef06ac

Browse files
fixes
1 parent c7088a2 commit 2ef06ac

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/react/src/ProgressBar/ProgressBar.features.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const Color = () => <ProgressBar progress="66" bg="done.emphasis" aria-la
2020

2121
export const MultipleItems = () => (
2222
<ProgressBar aria-valuenow={70} aria-label="Upload test.png">
23-
<ProgressBar.Item progress={33} bg={'accent.emphasis'} />
23+
<ProgressBar.Item progress={33} sx={{bg: 'accent.emphasis'}} />
2424
<ProgressBar.Item progress={23} bg={'danger.emphasis'} />
2525
<ProgressBar.Item progress={14} bg={'severe.emphasis'} />
2626
</ProgressBar>

packages/react/src/ProgressBar/ProgressBar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ import {warning} from '../utils/warning'
99

1010
type ProgressProp = {
1111
progress?: string | number
12+
bg?: string
1213
}
1314

1415
const shimmer = keyframes`
1516
from { mask-position: 200%; }
1617
to { mask-position: 0%; }
1718
`
1819

19-
export const Item = styled.span<ProgressProp & {bg: string} & SxProp>`
20+
export const Item = styled.span<ProgressProp & SxProp>`
2021
width: ${props => (props.progress ? `${props.progress}%` : 0)};
2122
background-color: ${props => get(`colors.${props.bg || 'success.emphasis'}`)};
2223

0 commit comments

Comments
 (0)