File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
packages/react/src/ProgressBar Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export const Color = () => <ProgressBar progress="66" bg="done.emphasis" aria-la
20
20
21
21
export const MultipleItems = ( ) => (
22
22
< 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' } } />
24
24
< ProgressBar . Item progress = { 23 } bg = { 'danger.emphasis' } />
25
25
< ProgressBar . Item progress = { 14 } bg = { 'severe.emphasis' } />
26
26
</ ProgressBar >
Original file line number Diff line number Diff line change @@ -9,14 +9,15 @@ import {warning} from '../utils/warning'
9
9
10
10
type ProgressProp = {
11
11
progress ?: string | number
12
+ bg ?: string
12
13
}
13
14
14
15
const shimmer = keyframes `
15
16
from { mask-position: 200%; }
16
17
to { mask-position: 0%; }
17
18
`
18
19
19
- export const Item = styled . span < ProgressProp & { bg : string } & SxProp > `
20
+ export const Item = styled . span < ProgressProp & SxProp > `
20
21
width: ${ props => ( props . progress ? `${ props . progress } %` : 0 ) } ;
21
22
background-color: ${ props => get ( `colors.${ props . bg || 'success.emphasis' } ` ) } ;
22
23
You can’t perform that action at this time.
0 commit comments