From f06cb5c4d6adb1d5de672b98056fbef397f93ad8 Mon Sep 17 00:00:00 2001 From: Rob Levin Date: Thu, 8 Oct 2020 08:59:21 -0700 Subject: [PATCH] Updates all the button icon examples to use new SVG icons --- agnosticui-css/button.html | 4 +- .../src/__snapshots__/Storyshots.test.js.snap | 37 ++++----- .../src/stories/ButtonIconTest.svelte | 46 +++++------ .../src/stories/ButtonIcon.stories.js | 78 +++++++++---------- .../src/stories/ButtonIconRight.vue | 34 -------- .../src/stories/ButtonIconTests.vue | 49 +++++++----- showcase/src/partials/Buttons.vue | 70 ++++++++--------- 7 files changed, 143 insertions(+), 175 deletions(-) delete mode 100644 agnosticui-vue/src/stories/ButtonIconRight.vue diff --git a/agnosticui-css/button.html b/agnosticui-css/button.html index 6e01eae37..856c33b7d 100644 --- a/agnosticui-css/button.html +++ b/agnosticui-css/button.html @@ -41,8 +41,8 @@ .demo-icon { fill: var(--agnosticui-btn-primary-color); - width: 16px; - height: 16px; + width: 14px; + height: 14px; opacity: .95; } diff --git a/agnosticui-svelte/src/__snapshots__/Storyshots.test.js.snap b/agnosticui-svelte/src/__snapshots__/Storyshots.test.js.snap index 6f1e65e5d..b17f1c659 100644 --- a/agnosticui-svelte/src/__snapshots__/Storyshots.test.js.snap +++ b/agnosticui-svelte/src/__snapshots__/Storyshots.test.js.snap @@ -336,23 +336,24 @@ exports[`Storyshots Button Icons Button Icons 1`] = ` class="btn btn-primary btn-rounded" type="button" > - Download + Download + @@ -367,20 +368,20 @@ exports[`Storyshots Button Icons Button Icons 1`] = ` data-custom-icon="true" fill="currentColor" focusable="false" - height="1em" + height="14px" + stroke="currentColor" stroke-width="0" - viewBox="0 0 24 24" - width="1em" + version="1.1" + viewBox="0 0 16 16" + width="14px" xmlns="http://www.w3.org/2000/svg" > - Call + + Call diff --git a/agnosticui-svelte/src/stories/ButtonIconTest.svelte b/agnosticui-svelte/src/stories/ButtonIconTest.svelte index 2a750ba91..5d6bac95c 100644 --- a/agnosticui-svelte/src/stories/ButtonIconTest.svelte +++ b/agnosticui-svelte/src/stories/ButtonIconTest.svelte @@ -13,41 +13,41 @@
diff --git a/agnosticui-vue/src/stories/ButtonIcon.stories.js b/agnosticui-vue/src/stories/ButtonIcon.stories.js index ef8e63168..e78d3189a 100644 --- a/agnosticui-vue/src/stories/ButtonIcon.stories.js +++ b/agnosticui-vue/src/stories/ButtonIcon.stories.js @@ -18,48 +18,46 @@ Essentially, you can style your slots aka children with css-in-js, css modules, or whatever suits you best. We just render it with so it makes no difference. */ +
+ +Download + - - - - \ No newline at end of file diff --git a/agnosticui-vue/src/stories/ButtonIconTests.vue b/agnosticui-vue/src/stories/ButtonIconTests.vue index 59b971bc9..5f0a581fa 100644 --- a/agnosticui-vue/src/stories/ButtonIconTests.vue +++ b/agnosticui-vue/src/stories/ButtonIconTests.vue @@ -1,5 +1,5 @@