From 715e432c6dfb4a1b9aefe5c2ed2758dbe8f60870 Mon Sep 17 00:00:00 2001 From: ryantanrk Date: Tue, 1 Mar 2022 23:38:48 +0800 Subject: [PATCH] fix: select icon --- components/icon/src/Icon.svelte | 2 +- components/select/src/Select.svelte | 11 + stories/Icon.stories.svelte | 332 ++++++++++++++++++++++++++-- stories/Introduction.stories.mdx | 6 +- 4 files changed, 328 insertions(+), 23 deletions(-) diff --git a/components/icon/src/Icon.svelte b/components/icon/src/Icon.svelte index ffb705d7..f772ed2c 100644 --- a/components/icon/src/Icon.svelte +++ b/components/icon/src/Icon.svelte @@ -15,7 +15,7 @@ > - + diff --git a/components/select/src/Select.svelte b/components/select/src/Select.svelte index 5d3d9531..dba4bf32 100644 --- a/components/select/src/Select.svelte +++ b/components/select/src/Select.svelte @@ -57,6 +57,9 @@ outline: none; box-sizing: border-box; appearance: none; + background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon' viewBox='0 0 24 24' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M6 9l6 6 6-6' /%3E%3C/svg%3E") + no-repeat; + background-position: 98% 50%; @media (min-width: $sm) { width: auto; @@ -75,4 +78,12 @@ display: none; } } + + .icon { + position: absolute; + top: 20px; + right: 20px; + width: 24px; + height: 24px; + } diff --git a/stories/Icon.stories.svelte b/stories/Icon.stories.svelte index a48786a2..c3d506b4 100644 --- a/stories/Icon.stories.svelte +++ b/stories/Icon.stories.svelte @@ -17,27 +17,317 @@ diff --git a/stories/Introduction.stories.mdx b/stories/Introduction.stories.mdx index e6c377a4..9c301bce 100644 --- a/stories/Introduction.stories.mdx +++ b/stories/Introduction.stories.mdx @@ -1,3 +1,7 @@ import { Meta } from '@storybook/addon-docs'; - \ No newline at end of file + + +# responsive-ui + +WeTix responsive-ui component set \ No newline at end of file