[go: nahoru, domu]

Skip to content

Commit

Permalink
add in storybook test for fontRatio
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Goodchild committed Nov 14, 2019
1 parent c533f8f commit 7a6cdf6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions stories/radial-progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,17 @@ stories
text={(steps, proportion) => `${Math.floor(proportion * 100)}%`}
/>
))
.add('Custom font ratio', () => (
<RadialProgress
steps={5}
step={5}
width={200}
height={200}
fontRatio={9}
showIntermediateProgress={true}
text={(steps, proportion) => `${Math.floor(proportion * 100)}%`}
/>
))
.add('Small, with custom text', () => (
<div style={{ fontWeight: 'bold' }}>
<RadialProgress
Expand Down

0 comments on commit 7a6cdf6

Please sign in to comment.