Skip to content

Commit

Permalink
coral-web: add selection-slash and fix some default icons (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
wujessica authored Jun 27, 2024
1 parent d7adbb4 commit 6767957
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Binary file modified src/interfaces/coral_web/public/fonts/CohereIcon-Default.woff
Binary file not shown.
Binary file modified src/interfaces/coral_web/public/fonts/CohereIcon-Outline.woff
Binary file not shown.
7 changes: 4 additions & 3 deletions src/interfaces/coral_web/src/components/Shared/Icon/Icon.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import cx from 'classnames';

export const Icons = [
'add',
'add-in-frame',
'add',
'arrow-down',
'arrow-left',
'arrow-right',
Expand All @@ -26,6 +26,7 @@ export const Icons = [
'close',
'code-block',
'code',
'compass',
'copy',
'dashboard',
'download',
Expand Down Expand Up @@ -61,7 +62,9 @@ export const Icons = [
'redo',
'reorder',
'search',
'selection-slash',
'settings',
'share',
'show',
'side-panel',
'sources',
Expand All @@ -76,9 +79,7 @@ export const Icons = [
'upload',
'warning',
'web',
'compass',
'wrench',
'share',
] as const;

export type IconName = (typeof Icons)[number];
Expand Down
5 changes: 5 additions & 0 deletions src/interfaces/coral_web/src/styles/icons.css
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,11 @@
.icon-wrench:before {
content: '\e94c';
}

.icon-share:before {
content: '\e94d';
}

.icon-selection-slash:before {
content: '\e94e';
}

0 comments on commit 6767957

Please sign in to comment.