Skip to content

Commit

Permalink
fix: select icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantanrk committed Mar 1, 2022
1 parent dc2e1fe commit 715e432
Show file tree
Hide file tree
Showing 4 changed files with 328 additions and 23 deletions.
2 changes: 1 addition & 1 deletion components/icon/src/Icon.svelte
Expand Up @@ -15,7 +15,7 @@
>
<slot>
<svg {...$$restProps}>
<use xlink:href={useHref} />
<use href={useHref} />
</svg>
</slot>
</i>
Expand Down
11 changes: 11 additions & 0 deletions components/select/src/Select.svelte
Expand Up @@ -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;
Expand All @@ -75,4 +78,12 @@
display: none;
}
}
.icon {
position: absolute;
top: 20px;
right: 20px;
width: 24px;
height: 24px;
}
</style>

0 comments on commit 715e432

Please sign in to comment.