JSFiddle - React, Tailwind, and code Playground
by wiloud
HTML
<span class="custom-dropdown">
<select class="customSelect">
<option>Choice</option>
<option>One</option>
<option>Two</option>
<option>Three</option>
</select>
</span>
CSS
.customSelect {
font-size: inherit;
margin: 0;
padding: 0.5em;
background-color: transparent;
color: #393939;
opacity:1;
-moz-appearance: none;
border: 0 none;
border-radius: 0px;
border:1px solid #B1B2B3;
padding-right: 2.5em;
}
.custom-dropdown {
display: inline-block;
position: relative;
vertical-align: middle;
}
.custom-dropdown:before, .custom-dropdown:after {
content: "";
pointer-events: none;
position: absolute;
}
.custom-dropdown:after {
content: "â–Ľ";
font-size: 0.625em;
height: 1em;
line-height: 1;
margin-top: -0.5em;
right: 1.2em;
top: 50%;
color:#fff;
}
.custom-dropdown:before {
bottom: 0;
right: 0;
top: 0;
width: 2em;
background-color: #29ACC0;
}