Job board

Selection pill

No purpose or usage written yet: the component's Figma description is empty.

Design
Finished
Level
Draft
Audit
6 open findingsat the audit of
Last changed

Preview

Selection pill, default variant as designedSelection pill, default variant as designed
Default variant as designed, light modedark modeOpen in Figma

Dependencies in Figma

Built fromUsed byCheckboxCheckboxOption select - Selection pillOption select -Selection pillOption selectOption select

Built from

Level checks

Draft · next level blocked by Errors open, No description

The ladder's checks for Option select
CheckLevelResult
AuditedReadyPasses
No errors openReady4 errors open
Has a descriptionReadyNot yet
Usage and Don't writtenReadyChecked at the next audit
Every layer namedReadyPasses
In codeReadyPasses
No warnings openStableNot yet
Code gen notes writtenStableChecked at the next audit
Auto layout throughoutStableChecked at the next audit
Matches the designStablePasses

Anatomy

12
Every option switched on: what the component can contain, not how it is usually used
#PartShownComponent
1CheckboxAlwaysCheckbox
2LabelAlways–

Properties

Selection pill: each property, its type, values and default
PropertyTypeValuesDefault
SelectedVariant
FalseTrue
False
DisabledVariant
FalseTrue
False
StateVariant
RestFocusHoverPress
Rest
Label textTextany textLabel

States

StateSet by
FocusInteraction
HoverInteraction
PressInteraction
SelectedThe Selected property
DisabledThe Disabled property

Implementation

What code builds differently from the drawing, and why
FigmaCodeWhy
Focus ring, a layer 4px outside the boxoutline on :focus-visible, outline-offset 4px less the ring's widthFigma has no focus state, so it draws the ring as a layer; in code it is not an element.
Selectedaria-selected, aria-pressed or checkedThe element's own selection state, by what the element is, so assistive technology announces it.
Disableddisabled, or aria-disabled where it must stay focusableThe element's own state: the browser keeps it out of the tab order and out of form submission.
State: Focus, Hover, Press:focus-visible, :hover, :activePseudo-classes the browser sets, so a template cannot claim a state the control is not in.

Changes on 23 Nov
ChangeTypeFigma filesCodeDetails
Content: fillRestyledMinorMinor

Changes on 4 Nov
ChangeTypeFigma filesCodeDetails
Content: widthRestyledBreakingMinor
Label: widthRestyledBreakingMinor
Label: heightRestyledBreakingMinor
Label: positionRestyledBreakingMinor
Option select - Selection pill: widthRestyledBreakingMinor
Focus ring: widthRestyledBreakingMinor
Label: text styleRestyledMinorMinor
Label: line heightRestyledMinorMinor
Label: letter spacingRestyledMinorMinor

Changes on 16 Sept
ChangeTypeFigma filesCodeDetails
ComponentAddedMinorMinor