Skip to content

Commit

Permalink
Tweak Harmony Icon Docs (#6733)
Browse files Browse the repository at this point in the history
  • Loading branch information
DejayJD authored Nov 17, 2023
1 parent c152f0e commit bcbe2d5
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions packages/harmony/src/icons/UtilityIcons.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,26 @@ Utility icons are simple, single-color glyphs that identify labels and actions a
<Heading>
## Usage

Recommended sizes for utility icons: 14px | 16px | 20px | 24px | 30px | 32px

</Heading>

<Flex direction='column' gap='m'>
Sizes
<Flex alignItems='center' gap='2xl'>
{Object.keys(iconSizes).map((size) => (
<Icons.IconNote key={size} size={size} />
))}
</Flex>
<Flex alignItems='center' gap='2xl'>
{Object.keys(iconSizes).map((size) => (
<Flex
key={size}
alignItems='center'
justifyContent='center'
h={iconSizes[size]}
w={iconSizes[size]}
css={{ background: 'rgba(255, 0, 0, 0.10)' }}
>
<Flex direction='column' alignItems='center' gap='s' key={size}>
<Icons.IconNote size={size} />
<Text css={{ color: '#F00 !important', fontSize: '10px !important' }}>
{size}
</Text>
<Flex
alignItems='center'
justifyContent='center'
h={iconSizes[size]}
w={iconSizes[size]}
css={{ background: 'rgba(255, 0, 0, 0.10)' }}
/>
<Text css={{ color: '#F00 !important', fontSize: '10px !important' }}>
{iconSizes[size]}
{`${iconSizes[size]}px`}
</Text>
</Flex>
))}
Expand Down

0 comments on commit bcbe2d5

Please sign in to comment.