Skip to content

Commit

Permalink
Fix invalid icon references.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrause committed Oct 12, 2024
1 parent f65643d commit 2f01563
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/assets/icons/_icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@ export const icons = {
'user': {},
'warning': {},
'workflows': {},
'close-x': {},
} as const satisfies Record<string, IconDef>;
6 changes: 0 additions & 6 deletions src/assets/icons/close-x.svg

This file was deleted.

6 changes: 3 additions & 3 deletions src/components/graphics/Icon/Icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default {
tags: ['autodocs'],
argTypes: {},
args: {
icon: 'service-account',
icon: 'dashboard',
},
render: args => (
<Icon {...args}/>
Expand All @@ -52,10 +52,10 @@ export const Inline: Story = {
}}
>
<p style={{ color: 'light-dark(#645EC3, #BDB9F3)' }}>
Icons <Icon {...args} icon="star-fill"/> automatically adjust to the font size and color of the text.
Icons <Icon {...args} icon="assessment"/> automatically adjust to the font size and color of the text.
</p>
<p>
Another icon <Icon {...args} icon="pod" style={{ fontSize: '2em' }}/>, with a large size to
Another icon <Icon {...args} icon="integrations" style={{ fontSize: '2em' }}/>, with a large size to
demonstrate vertical alignment within the text.
</p>
<p style={{ fontSize: '1em', display: 'flex', alignItems: 'center', gap: '0.5ch', textAlign: 'start' }}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/overlays/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const Modal = ({
onClick={close}
onKeyUp={close}
>
<Icon icon="close-x" />
<Icon icon="cross" />
</button>
)}
<div className={cx(cl['bk-modal__container'])}>
Expand Down

0 comments on commit 2f01563

Please sign in to comment.