Select Input

Reference: Elevate Lookbook | Specs: DESIGN.md line 444-458

Default (40px height)

expand_more
<div class="elv-select">
  <select class="elv-select__field" aria-label="Select option">
    <option value="" disabled selected>Select an option...</option>
    <option value="1">Option 1</option>
    <option value="2">Option 2</option>
    <option value="3">Option 3</option>
  </select>
  <span class="elv-select__icon material-symbols-outlined">expand_more</span>
</div>

Select States

expand_more
expand_more

Focus state: 3px outline (#c3bde5 / P40)

expand_more
expand_more
expand_more
expand_more

This helps us recommend the right software

expand_more
expand_more
<!-- Error State -->
<div class="elv-select">
  <select
    class="elv-select__field elv-select__field--error"
    aria-invalid="true"
    aria-describedby="error-id"
  >
    <option value="" disabled selected>Please select...</option>
    <option value="1">Option 1</option>
  </select>
  <span class="elv-select__icon material-symbols-outlined">expand_more</span>
</div>
<p id="error-id" class="elv-input-error" role="alert">Error message</p>

<!-- Disabled -->
<div class="elv-select">
  <select class="elv-select__field" disabled>
    <option value="" disabled selected>Disabled...</option>
    <option value="1">Option 1</option>
  </select>
  <span class="elv-select__icon material-symbols-outlined">expand_more</span>
</div>

<!-- With Label -->
<label class="elv-input-label" for="select-id">Label</label>
<div class="elv-select">
  <select id="select-id" class="elv-select__field">
    <option value="" disabled selected>Choose...</option>
    <option value="1">Option 1</option>
  </select>
  <span class="elv-select__icon material-symbols-outlined">expand_more</span>
</div>

<!-- With Helper Text -->
<div class="elv-select">
  <select class="elv-select__field">...</select>
  <span class="elv-select__icon material-symbols-outlined">expand_more</span>
</div>
<p class="elv-input-helper">Helper text</p>

<!-- Required -->
<label class="elv-input-label">
  Label <span class="elv-required">*</span>
</label>
<div class="elv-select">
  <select class="elv-select__field" required aria-required="true">...</select>
  <span class="elv-select__icon material-symbols-outlined">expand_more</span>
</div>

Large Variant (48px height)

expand_more

48px height for improved accessibility

<div class="elv-select elv-select--lg">
  <select class="elv-select__field">
    <option value="" disabled selected>Choose...</option>
    <option value="1">Option 1</option>
  </select>
  <span class="elv-select__icon material-symbols-outlined">expand_more</span>
</div>

Grouped Options

expand_more
<div class="elv-select">
  <select class="elv-select__field">
    <option value="" disabled selected>Browse by category...</option>
    <optgroup label="Sales & Marketing">
      <option value="crm">CRM Software</option>
      <option value="marketing">Marketing Automation</option>
    </optgroup>
    <optgroup label="IT & Development">
      <option value="project">Project Management</option>
    </optgroup>
  </select>
  <span class="elv-select__icon material-symbols-outlined">expand_more</span>
</div>

Complete Form Example

expand_more
expand_more

This helps us recommend the right software

expand_more
expand_more

Accessibility Notes

Design System Specs

Property Value Token
Background #f2f2f3 N10
Border 1px solid #dfdfe2 border-light
Border Radius 8px radius-sm
Height (default) 40px
Height (large) 48px
Padding 0 36px 0 12px
Font Size 16px Body
Font Weight 400 Regular
Line Height 24px
Text Color #201f23 text-default
Placeholder Color #6f6d78 text-nonessential
Focus State 3px solid outline #c3bde5 P40
Hover State background: #f2f2f3 N10
Error State 2px solid #eb2000 R120
Disabled Background #fafafa N5
Disabled Text #b0afb6 N40
Label Font Size 14px Label Sm
Label Font Weight 600 Semibold
Helper Text Size 12px
Helper Text Color #6f6d78 text-nonessential
Error Message Size 12px
Error Message Weight 600 Semibold
Error Message Color #b21800 R140
Dropdown Icon Material Symbol expand_more

Spacing Guidelines

Element Spacing
Label to select 4px (space-1)
Select to helper text 4px (space-1)
Select to error message 4px (space-1)
Between form fields 16px (space-4)

Implementation Notes