Skip to content

Commit

Permalink
feat(funnel): update funnel icon
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed Jun 17, 2020
1 parent e487a76 commit 826c08f
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 7 deletions.
Binary file modified website/src/assets/icons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/src/assets/icons/funnel-dark-colored.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/src/assets/icons/funnel-dark-neutral.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/src/assets/icons/funnel-light-colored.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/src/assets/icons/funnel-light-neutral.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified website/src/assets/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 20 additions & 6 deletions website/src/components/icons/FunnelIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,28 @@ const chartProps = {
},
{
id: 'B',
value: 70,
value: 60,
},
{
id: 'C',
value: 30,
value: 20,
},
],
margin: {
top: 8,
right: 8,
right: 4,
bottom: 8,
left: 8,
left: 4,
},
isInteractive: false,
spacing: 2,
shapeBlending: 0.6,
enableLabel: false,
borderWidth: 10,
beforeSeparatorOffset: 10,
beforeSeparatorLength: 0,
afterSeparatorOffset: 10,
afterSeparatorLength: 0,
}

const FunnelIconItem = ({ type }) => {
Expand All @@ -47,9 +55,15 @@ const FunnelIconItem = ({ type }) => {
<Icon id={`funnel-${type}`} type={type}>
<Funnel
{...chartProps}
spacing={0.12}
shapeContinuity={0.4}
colors={[currentColors[4], currentColors[2], currentColors[1]]}
theme={{
grid: {
line: {
stroke: currentColors[1],
strokeWidth: 2,
},
},
}}
/>
</Icon>
)
Expand Down
2 changes: 1 addition & 1 deletion website/src/styles/icons.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* glue: 0.13 hash: b7b1f12470 */
/* glue: 0.13 hash: f78f8b2c8e */
.sprite-icons-waffle-light-neutral,
.sprite-icons-waffle-light-colored,
.sprite-icons-waffle-dark-neutral,
Expand Down

0 comments on commit 826c08f

Please sign in to comment.