Skip to content

Commit

Permalink
fix(sunburst): fix with child color modifier story
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze authored and plouc committed Dec 2, 2020
1 parent 3c0586b commit 96ac069
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/sunburst/stories/sunburst.stories.js
Expand Up @@ -21,7 +21,10 @@ stories.addDecorator(withKnobs)
stories.add('default', () => <Sunburst {...commonProperties} />)

stories.add('with child color modifier', () => (
<Sunburst {...commonProperties} childColor="inherit:brighter(0.13)" />
<Sunburst
{...commonProperties}
childColor={{ from: 'color', modifiers: [['brighter', 0.13]] }}
/>
))

stories.add('with child colors independent of parent', () => (
Expand Down

0 comments on commit 96ac069

Please sign in to comment.