From d65bc683454c9941d595b2c6b0bdd1e87ff21ef5 Mon Sep 17 00:00:00 2001 From: Max Morgan Date: Fri, 13 Oct 2023 14:25:33 -0400 Subject: [PATCH] Add chevron variants to icons --- src/components/atoms/Icon/Icon.js | 20 ++++++++++++++++++++ src/stories/icon.stories.js | 4 ++++ 2 files changed, 24 insertions(+) diff --git a/src/components/atoms/Icon/Icon.js b/src/components/atoms/Icon/Icon.js index 2a386526..a0a1d5c3 100644 --- a/src/components/atoms/Icon/Icon.js +++ b/src/components/atoms/Icon/Icon.js @@ -41,6 +41,26 @@ export default class Icon extends HTMLElement { getIcon(icon, size) { switch (icon) { + case 'chevron-right': + return ` + + + `; + case 'chevron-left': + return ` + + + `; + case 'chevron-up': + return ` + + + `; + case 'chevron-down': + return ` + + + `; case 'house': return ` diff --git a/src/stories/icon.stories.js b/src/stories/icon.stories.js index 15f68b68..0fcdb8f4 100644 --- a/src/stories/icon.stories.js +++ b/src/stories/icon.stories.js @@ -6,6 +6,10 @@ export default { icon: { control: { type: 'select' }, options: [ + 'chevron-right', + 'chevron-left', + 'chevron-up', + 'chevron-down', 'house', 'house-fill', 'exclamation-circle',