Skip to content

Commit e973f28

Browse files
authored
refactor(icons): move componets/icon to elements/icons (#18316)
1 parent 9840477 commit e973f28

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

packages/web-components/src/components/icon/docs/overview.mdx renamed to packages/web-components/src/components/icons/docs/overview.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
variants={[
77
{
88
label: 'Default',
9-
variant: 'components-icon--default'
9+
variant: 'elements-icons--default'
1010
},
1111
{
1212
label: 'With Custom Class',
13-
variant: 'components-icon--with-custom-class'
13+
variant: 'elements-icons--with-custom-class'
1414
},
1515
{
1616
label: 'With aria-label',
17-
variant: 'components-icon--with-aria-label'
17+
variant: 'elements-icons--with-aria-label'
1818
},
1919
{
2020
label: 'With Title',
21-
variant: 'components-icon--with-title'
21+
variant: 'elements-icons--with-title'
2222
}
2323
]}
2424
/>

packages/web-components/src/components/icon/icon.mdx renamed to packages/web-components/src/components/icons/icons.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { ArgTypes, Meta } from '@storybook/blocks';
2-
import * as IconStories from './icon.stories';
2+
import * as IconsStories from './icons.stories';
33

4-
<Meta of={IconStories} />
4+
<Meta of={IconsStories} />
55

6-
# Icon
6+
# Icons
77

88
Icons can be utilized by specifying the icon name and size in the import.
99

@@ -27,5 +27,5 @@ function App() {
2727
);
2828
```
2929
30-
Icon library can be found
30+
Icons library can be found
3131
[here](https://www.carbondesignsystem.com/guidelines/icons/library).

packages/web-components/src/components/icon/icon.stories.ts renamed to packages/web-components/src/components/icons/icons.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const withTitle = {
7272
};
7373

7474
const meta = {
75-
title: 'Components/Icon',
75+
title: 'Elements/Icons',
7676
};
7777

7878
export default meta;

0 commit comments

Comments
 (0)