Skip to content

Commit

Permalink
Merge pull request #7144 from Sage/icon_font_updates_060125
Browse files Browse the repository at this point in the history
feat(icon): 5 new icons added
  • Loading branch information
edleeks87 authored Jan 9, 2025
2 parents 5250cdf + 1966c4f commit fbb8cc2
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/components/icon/__snapshots__/icon-unicodes.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ exports[`the unicodes have not changed 1`] = `
"settings": "\\e91a",
"settings_old": "\\e91a",
"share": "\\e946",
"shield_with_tick": "\\f070",
"shield_with_tick_outline": "\\f071",
"shop": "\\e947",
"sort_down": "\\e948",
"sort_up": "\\e949",
Expand All @@ -248,6 +250,8 @@ exports[`the unicodes have not changed 1`] = `
"squares_nine": "\\e969",
"stacked_boxes": "\\e97c",
"stacked_squares": "\\e983",
"stop": "\\f068",
"stop_circle": "\\f069",
"submitted": "\\e903",
"support_online": "\\f032",
"sync": "\\e944",
Expand All @@ -273,5 +277,6 @@ exports[`the unicodes have not changed 1`] = `
"warning": "\\e924",
"website": "\\f051",
"welfare": "\\f034",
"worldwide_location": "\\f072",
}
`;
Binary file modified src/components/icon/fonts/carbon-icons-webfont.woff
Binary file not shown.
Binary file modified src/components/icon/fonts/carbon-icons-webfont.woff2
Binary file not shown.
5 changes: 5 additions & 0 deletions src/components/icon/icon-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ export const ICONS: IconType[] = [
"settings",
"settings_old",
"share",
"shield_with_tick",
"shield_with_tick_outline",
"shop",
"sort_down",
"sort_up",
Expand All @@ -294,6 +296,8 @@ export const ICONS: IconType[] = [
"squares_nine",
"stacked_boxes",
"stacked_squares",
"stop",
"stop_circle",
"submitted",
"support_online",
"sync",
Expand All @@ -319,6 +323,7 @@ export const ICONS: IconType[] = [
"warning",
"website",
"welfare",
"worldwide_location",
];

export default dlsConfig;
7 changes: 6 additions & 1 deletion src/components/icon/icon-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ export type IconType =
| "settings"
| "settings_old"
| "share"
| "shield_with_tick"
| "shield_with_tick_outline"
| "shop"
| "sort_down"
| "sort_up"
Expand All @@ -245,6 +247,8 @@ export type IconType =
| "squares_nine"
| "stacked_boxes"
| "stacked_squares"
| "stop"
| "stop_circle"
| "support_online"
| "submitted"
| "sync"
Expand All @@ -269,4 +273,5 @@ export type IconType =
| "volunteering"
| "warning"
| "website"
| "welfare";
| "welfare"
| "worldwide_location";
5 changes: 5 additions & 0 deletions src/components/icon/icon-unicodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,11 @@ const misc = {
biometric: "\\f067",
import: "\\f066",
export: "\\f065",
shield_with_tick: "\\f070",
shield_with_tick_outline: "\\f071",
stop: "\\f068",
stop_circle: "\\f069",
worldwide_location: "\\f072",
};

const legacyNames = {
Expand Down
Binary file modified src/style/assets/carbon-icons-webfont.woff
Binary file not shown.
Binary file modified src/style/assets/carbon-icons-webfont.woff2
Binary file not shown.

0 comments on commit fbb8cc2

Please sign in to comment.