Amazium ensures that select dropdowns have a consistent look and feel across all browsers. By default, native select elements render differently on various operating systems and browsers. To address this, Amazium applies global styles that:
To style a <select> dropdown, simply wrap it in a container div with the class .input--select.
<fieldset>
<label for="text">Label</label>
<div class="input input--select">
<select>
<option selected disabled>Please select...</option>
<option value="">...</option>
<option value="">...</option>
</select>
</div>
<p class="message">Sorry looks like you choose poorly.</p>
</fieldset>
<fieldset>
<label for="text">Label</label>
<div class="input input--select">
<select disabled>
<option selected disabled>Please select...</option>
<option value="">...</option>
<option value="">...</option>
</select>
</div>
<p class="message">Sorry looks like you choose poorly.</p>
</fieldset>
<fieldset class="invalid">
<label for="text">Label</label>
<div class="input input--select">
<select disabled>
<option selected disabled>Please select...</option>
<option value="">...</option>
<option value="">...</option>
</select>
</div>
<p class="message">Sorry looks like you choose poorly.</p>
</fieldset>