17 lines
864 B
Markdown
17 lines
864 B
Markdown
# Contract: Segmented Controls
|
|
|
|
Part of [controls-selection](../contract.md).
|
|
|
|
## Segmented Filters
|
|
|
|
- Segment/toggle filters are allowed for small enumerations (status, active/archived).
|
|
- Segmented controls are grouped joined-buttons:
|
|
- one shared outer shell,
|
|
- rounded corners only on the first/last segment,
|
|
- straight internal separators between middle segments.
|
|
- Active segment color may vary by context (for example blue preset selector vs dark status scope tabs), but geometry must remain consistent.
|
|
- Segment changes should preserve other active filters where possible.
|
|
- A view switcher uses the same joined geometry; expose the selected view with `aria-pressed`.
|
|
A single-choice form value uses radio semantics and keyboard behavior (native radios are
|
|
preferred), not just a colored active button. Concrete options remain product-specific.
|