Skip to content

Commit 15f942d

Browse files
hussam-i-amCopilot
andauthored
fix(ProgressBar): pass-through style props (#6169)
Co-authored-by: Copilot <[email protected]>
1 parent a5f7928 commit 15f942d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/small-baboons-press.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': minor
3+
---
4+
5+
fix(ProgressBar): pass-through style props

packages/react/src/ProgressBar/ProgressBar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const Item = forwardRef<HTMLSpanElement, ProgressBarItems>(
3232
'aria-valuenow': ariaValueNow,
3333
'aria-valuetext': ariaValueText,
3434
className,
35+
style,
3536
...rest
3637
},
3738
forwardRef,
@@ -63,7 +64,7 @@ export const Item = forwardRef<HTMLSpanElement, ProgressBarItems>(
6364
aria-label={ariaLabel}
6465
ref={forwardRef}
6566
progress={progress}
66-
style={styles}
67+
style={{...styles, ...style}}
6768
{...ariaAttributes}
6869
/>
6970
)

0 commit comments

Comments
 (0)