Split shared UI knowledge into atomic topic directories

This commit is contained in:
mchus committed 2026-10-03 09:28:15 +03:00
1 parent 08ff987edb
commit b0e6402d66
37 files changed
+600 -516

No files matched your search

@@ -0,0 +1,16 @@
# 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.