I am currently utilizing Bootstrap select dropdown, however, I am looking to customize its appearance to match the image provided below without the need for additional plugins. I have attempted a few methods but none have been successful. The new dropdown design should maintain the same functionality as a standard select dropdown, including the ability to bind dropdown values to the select field and retrieve the selected value.
Here is the HTML:
<div class="col-3 mb-3">
<label for="exampleFormControlInput1" class="form-label">Project</label>
<select class="form-select" aria-label="Default select example" >
<option selected value="">Select Project</option>
<option value="ACTIVE">Active</option>
<option value="Terminate">TERMINATED</option>
</select>
</div>
And here is the CSS:
select.form-select {
-webkit-appearance: none;
-moz-appearance: none;
background: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='18' height='18' viewBox='0 0 24 24'><path fill='grey' d='M7.406 7.828l4.594 4.594 4.594-4.594 1.406 1.406-6 6-6-6z'></path></svg>") #fff;
background-position: 98% 50%;
background-repeat: no-repeat;
}
The desired design should resemble this image: