Appearance
Appearance
Style syntax for controlling the native appearance of UI controls.
š§This page is still under construction and some content may not be complete.
Overview [sr-only]
Remove default styling
Use the appearance:none
to remove default appearance of element. It is usually used to customize UI controls element.
<select class="appearance:none"> <option>Yes</option> <option>No</option></select>
Before removing the default appearance, it looks like this:
<select> <option>Yes</option> <option>No</option></select>
Conditionally apply
Apply styles in different states using selectors, media queries, etc.
<div class="appearance:none:hover appearance:none@sm appearance:none@dark appearance:none@print">ā¦</div>