Skip to content

Commit

Permalink
feat: add minus icon
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptammergard committed Oct 27, 2023
1 parent 36742ec commit 06a8809
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/grumpy-meals-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@einride/ui": minor
---

Adds a minus icon to the Icon component.
4 changes: 3 additions & 1 deletion packages/einride-ui/src/components/content/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const iconNames = [
"bolt",
"loupe",
"plus",
"minus",
"ellipsis",
"plusCircle",
"minusCircle",
Expand Down Expand Up @@ -103,7 +104,8 @@ const getEncodedEntity = (name: IconName): ReactNode => {
if (name === "arrowDownCircle") return <>&#1048696;</>
if (name === "bolt") return <>&#128498;</>
if (name === "loupe") return <>&#1049259;</>
if (name === "plus") return <>&#43;</>
if (name === "plus") return <>&#43;</> // TODO: change this to `&#x10017C;` 2023-10-03 at earliest when font cache should have expired everywhere.
if (name === "minus") return <>&#x10017D;</>
if (name === "ellipsis") return <>&#x100360;</>
if (name === "plusCircle") return <>&#x10004C;</>
if (name === "minusCircle") return <>&#x10004E;</>
Expand Down

0 comments on commit 06a8809

Please sign in to comment.