Skip to content

Commit

Permalink
docs: fix icons list story
Browse files Browse the repository at this point in the history
  • Loading branch information
DSil committed Dec 22, 2023
1 parent 861ac5b commit 95d70f0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/orbit-components/src/Icon/IconList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const List = styled.div`
const Container = styled.div`
display: flex;
flex-direction: row;
gap: ${defaultTokens.spaceLarge};
justify-content: flex-start;
align-items: center;
align-content: center;
Expand All @@ -24,7 +25,7 @@ const Container = styled.div`
border-radius: ${defaultTokens.borderRadiusLarge};
border: ${defaultTokens.borderWidthCard} ${defaultTokens.borderStyleCard}
${defaultTokens.paletteCloudNormal};
padding-right: ${defaultTokens.spaceLarge};
padding: 0 ${defaultTokens.spaceLarge};
`;

const IconImport = styled.div`
Expand All @@ -43,10 +44,7 @@ const IconList = () => (
{Object.keys(Icons)
.filter(n => n !== "__namedExportsOrder")
.map(icon => {
const Icon = styled(Icons[icon])`
padding: 0 ${defaultTokens.spaceLarge};
flex-shrink: 0;
`;
const Icon = Icons[icon];

const iconName = `${icon}`;
return (
Expand Down

0 comments on commit 95d70f0

Please sign in to comment.