2020-01-30 11:59:10 +13:00
|
|
|
<script>
|
|
|
|
import getIcon from "./icon";
|
|
|
|
export let value;
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.select-container {
|
|
|
|
padding-bottom: 10px;
|
|
|
|
font-size: 0.9rem;
|
|
|
|
color: var(--secondary50);
|
|
|
|
font-weight: bold;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
select {
|
|
|
|
display: block;
|
2020-01-31 05:22:19 +13:00
|
|
|
font-size: 14px;
|
2020-01-30 11:59:10 +13:00
|
|
|
font-family: sans-serif;
|
2020-01-31 05:22:19 +13:00
|
|
|
font-weight: 500;
|
|
|
|
color: #163057;
|
2020-01-30 11:59:10 +13:00
|
|
|
line-height: 1.3;
|
|
|
|
padding: 1em 2.6em 0.9em 1.4em;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0;
|
|
|
|
-moz-appearance: none;
|
|
|
|
-webkit-appearance: none;
|
|
|
|
appearance: none;
|
2020-01-31 05:22:19 +13:00
|
|
|
background: #fff;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
height: 50px;
|
2020-01-30 11:59:10 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
.arrow {
|
|
|
|
position: absolute;
|
|
|
|
right: 10px;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
margin: auto;
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
pointer-events: none;
|
|
|
|
color: var(--primary100);
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<div class="select-container">
|
|
|
|
<select on:change {value}>
|
|
|
|
<slot />
|
|
|
|
</select>
|
|
|
|
<span class="arrow">
|
|
|
|
{@html getIcon('chevron-down', '24')}
|
|
|
|
</span>
|
|
|
|
</div>
|