Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add carbon svg to mdxicon component #4307

Merged
merged 3 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/MdxIcon/icons/carbon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/components/MdxIcon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ import medium from './icons/medium.svg';
import sass from './icons/sass.png';
import figma from './icons/figma.svg';
import yourlearning from './icons/yourlearning.svg';
import carbon from './icons/carbon.svg';

const localIcons = {
carbon,
sketch,
ase,
codesandbox,
Expand Down
4 changes: 2 additions & 2 deletions src/pages/all-about-carbon/the-carbon-ecosystem.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ _Some of this content is accessible to IBMers only._
href="/community/component-index/"
>

![Carbon icon](images/ecosystem/carbon.svg)
<MdxIcon name="carbon" />

</ResourceCard>

Expand All @@ -90,7 +90,7 @@ _Some of this content is accessible to IBMers only._
href="/community/patterns/"
>

![Carbon icon](images/ecosystem/carbon.svg)
<MdxIcon name="carbon" />

</ResourceCard>

Expand Down
8 changes: 4 additions & 4 deletions src/pages/community/component-index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ patterns, functions, and templates that once lived here in the community index.
href="https://next.carbondesignsystem.com/assets/components"
>

![Carbon icon](/images/carbon.svg)
<MdxIcon name="carbon" />

</ResourceCard>
</Column>
Expand All @@ -38,7 +38,7 @@ patterns, functions, and templates that once lived here in the community index.
href="https://next.carbondesignsystem.com/assets/patterns"
>

![Carbon icon](/images/carbon.svg)
<MdxIcon name="carbon" />

</ResourceCard>
</Column>
Expand All @@ -50,7 +50,7 @@ patterns, functions, and templates that once lived here in the community index.
href="https://next.carbondesignsystem.com/assets/functions"
>

![Carbon icon](/images/carbon.svg)
<MdxIcon name="carbon" />

</ResourceCard>
</Column>
Expand All @@ -62,7 +62,7 @@ patterns, functions, and templates that once lived here in the community index.
href="https://next.carbondesignsystem.com/assets/templates"
>

![Carbon icon](/images/carbon.svg)
<MdxIcon name="carbon" />

</ResourceCard>
</Column>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/deprecations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ For questions regarding these deprecations or how to migrate,
href="https://github.com/carbon-design-system/carbon/blob/main/docs/release-schedule.md"
>

![Carbon icon](images/ecosystem/carbon.svg)
<MdxIcon name="carbon" />

</ResourceCard>
</Column>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/migrating/guide/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ get started.
actionIcon="arrowRight"
>

![Carbon icon](images/carbon.svg)
<MdxIcon name="carbon" />

</ResourceCard>
</Column>
Expand All @@ -63,7 +63,7 @@ get started.
actionIcon="arrowRight"
>

![Carbon icon](images/carbon.svg)
<MdxIcon name="carbon" />

</ResourceCard>
</Column>
Expand Down
Loading