From 94f3d79ebe71ca65499b80ac3fbf84031d711740 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Mon, 26 Oct 2020 12:26:42 -0700 Subject: [PATCH] List all available icons in a story. This is like the same as using svg-jar, right? --- ui/app/styles/storybook.scss | 20 ++++++++++++++++++++ ui/stories/theme/icons.stories.js | 18 ++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 ui/stories/theme/icons.stories.js diff --git a/ui/app/styles/storybook.scss b/ui/app/styles/storybook.scss index bc37fe426..4362e8fd2 100644 --- a/ui/app/styles/storybook.scss +++ b/ui/app/styles/storybook.scss @@ -142,4 +142,24 @@ width: 300px; } } + + .tile-list { + display: flex; + flex-wrap: wrap; + + .icon-tile { + width: 240px; + padding: 10px; + margin: 10px; + border: 1px solid $grey-lighter; + border-radius: $radius; + svg { + margin: auto; + width: 30px; + height: 30; + fill: $grey; + color: $grey; + } + } + } } diff --git a/ui/stories/theme/icons.stories.js b/ui/stories/theme/icons.stories.js new file mode 100644 index 000000000..77ff8fef2 --- /dev/null +++ b/ui/stories/theme/icons.stories.js @@ -0,0 +1,18 @@ +import hbs from 'htmlbars-inline-precompile'; + +export default { + title: 'Theme|Icons', +}; + +export let Icons = () => ({ + template: hbs` + + `, +});