diff --git a/.storybook/components/Icons.js b/.storybook/components/Icons.js index c47e7e6f87..421f50b0c8 100644 --- a/.storybook/components/Icons.js +++ b/.storybook/components/Icons.js @@ -73,10 +73,11 @@ const Size = styled.p` font-style: italic; `; -const iconStyles = color => theme => css` +const iconStyles = (color, size) => theme => css` height: 3rem; width: auto; max-width: 6rem; + padding: ${size === 'small' ? '0.5rem' : '0'}; color: ${theme.colors[color]}; background-color: ${color === 'white' ? theme.colors.n900 @@ -170,7 +171,11 @@ const Icons = () => { const Icon = iconComponents[componentName]; return ( - +