Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

spec(AST-079): secondary matches the theme's secondary Button; accept DEC-1 (#7547)

Cindy Zhangb3310486e0a6
diff --git a/docs/specs/AST-079-selector-trigger-hierarchy/spec.md b/docs/specs/AST-079-selector-trigger-hierarchy/spec.md
index f875a8332a..1c1bdbad1b 100644
--- a/docs/specs/AST-079-selector-trigger-hierarchy/spec.md
+++ b/docs/specs/AST-079-selector-trigger-hierarchy/spec.md
@@ -3,12 +3,12 @@ schema_version: 4
template_version: 2
kind: system-spec
id: spec:AST-079
-authority: draft
+authority: current
archive_reason: null
superseded_by: null
-approved_by: null
-approved_at: null
-phase: proposed
+approved_by: cixzhang
+approved_at: 2026-10-14
+phase: accepted
owners: [cixzhang]
affects_architecture:
[architecture:public-component-api, architecture:component-theming-surface]
@@ -39,9 +39,10 @@ same value names, defaults, and resting roles. Their component records keep each
selector's selection, popup, and anatomy contracts.
The released `Button` component owns its own variant map and secondary treatment;
-this record does not define Button behavior. `family:input-fields` owns the layout,
-status, and InputGroup rules projected by FR5 and FR6, but it does not add this
-visual axis to every input-family member. General control hierarchy, exact token
+this record does not define Button behavior. It requires the `secondary` trigger
+of every built-in selector to match that treatment in the active theme.
+`family:input-fields` owns the layout, status, and InputGroup rules projected by
+FR5 and FR6, but it does not add this visual axis to every input-family member. General control hierarchy, exact token
selection, and component geometry remain outside this record.
## Non-goals
@@ -60,9 +61,9 @@ selection, and component geometry remain outside this record.
## Public concepts
-| Concept | Closed values | Meaning | Default | Owner | Stability |
-| ------------------------ | --------------------------------- | --------------------------------------------------------------------------------------- | ------- | --------------------------------------------------------- | --------------------------------- |
-| built-in trigger variant | `input`, `secondary`, and `ghost` | Selects form-field, neutral medium-emphasis, or transparent low-emphasis trigger chrome | `input` | Selector meaning: `component:Selector`; adoption: AST-079 | `secondary` additive; others kept |
+| Concept | Closed values | Meaning | Default | Owner | Stability |
+| ------------------------ | --------------------------------- | -------------------------------------------------------------------------------- | ------- | --------------------------------------------------------- | --------------------------------- |
+| built-in trigger variant | `input`, `secondary`, and `ghost` | Selects form-field, secondary-Button, or transparent low-emphasis trigger chrome | `input` | Selector meaning: `component:Selector`; adoption: AST-079 | `secondary` additive; others kept |
## Requirements
@@ -74,16 +75,19 @@ selection, and component geometry remain outside this record.
visual-prop axis, and consumer document that exposes this axis MUST use those
same names. Other values are rejected by the public type.
- **FR2 — The resting roles are shared.** At rest, `input` presents an opaque,
- bordered form-field surface; `secondary` presents a borderless trigger with a
- neutral fill and medium emphasis; and `ghost` presents a transparent,
- lower-emphasis trigger. The three treatments MUST remain distinguishable at
- rest. `component:Selector/DD1` additionally owns Selector's parity with an
- adjacent secondary Button through its states. MultiSelector and ComplexSelector
- MAY reuse their existing shared non-input hover, active, focus-visible,
- disabled, and read-only treatments; this record does not require their state
- pixels to be identical to Selector or Button. A theme MAY choose exact tokens
- while preserving the resting roles. The Button component retains ownership of
- its own secondary treatment.
+ bordered form-field surface; `secondary` matches the active theme's secondary
+ `Button`; and `ghost` presents a transparent, lower-emphasis trigger. For
+ `secondary` on all three selectors, the resting border (width, style, and
+ color), fill, and text color MUST match those of a secondary `Button` in the
+ same theme, in parity with `component:Selector/DD1`; under the default theme
+ that is a borderless, neutral-filled, medium-emphasis trigger. The three
+ treatments MUST remain distinguishable at rest. `component:Selector/DD1`
+ additionally owns Selector's parity with an adjacent secondary Button through
+ its states. MultiSelector and ComplexSelector MAY reuse their existing shared
+ non-input hover, active, focus-visible, disabled, and read-only treatments;
+ this record does not require their state pixels to be identical to Selector or
+ Button. A theme MAY choose exact tokens while preserving the resting roles. The
+ Button component retains ownership of its own secondary treatment.
- **FR3 — Trigger paint does not change selector behavior.** Changing `variant`
MUST NOT change the selected value, option or child vocabulary, popup
presentation mode (`popover`, `bottom-sheet`, or `adaptive`) or overlay
@@ -99,8 +103,8 @@ selection, and component geometry remain outside this record.
`family:input-fields` FR1, standalone `Selector` MAY follow its displayed
content while `MultiSelector` and `ComplexSelector` MUST keep their available
inline size across value changes. Under family FR8, a requested `attached`
- status on the borderless `secondary` or translucent `ghost` trigger resolves
- to `detached`; status border and shadow remain limited to an eligible `input`
+ status on a non-input (`secondary` or `ghost`) trigger resolves to
+ `detached`; status border and shadow remain limited to an eligible `input`
trigger.
- **FR6 — InputGroup keeps the connected surface.** `Selector` and
`MultiSelector` MAY use `secondary` inside InputGroup. The trigger MAY keep its
@@ -119,9 +123,11 @@ selection, and component geometry remain outside this record.
- Browser evidence: real-browser resting pixels beside secondary Buttons and
before/after inline-size measurements for value changes in MultiSelector and
ComplexSelector. Source inspection covers shared non-input state branches.
- Conformance to FR6 requires focused DOM/style tests and rendered group geometry
- for secondary Selector and MultiSelector before their implementation is
- accepted.
+ FR2 is proven by rendered comparison of each selector's resting `secondary`
+ trigger with a secondary `Button` in the default theme and in every shipped
+ theme that styles the secondary `Button`. Conformance to FR6 requires focused
+ DOM/style tests and rendered group geometry for secondary Selector and
+ MultiSelector.
## Current-state impact
@@ -136,44 +142,46 @@ selection, and component geometry remain outside this record.
- `family:input-fields` continues to own inline size, status placement, and
InputGroup surface rules; this record projects those rules onto the adopted
trigger value without changing them.
-- The Button component retains its released variant map and rendering. This
- record defines secondary independently as a borderless, neutral-filled,
- medium-emphasis selector trigger at rest.
-- Grouped secondary Selector and MultiSelector paths require the FR6 adaptation
- and evidence before they conform; AST-079 does not treat current standalone
- implementation evidence as proof of grouped geometry.
+- The Button component retains its released variant map and rendering.
+- Implementation gap: under a theme that restyles its secondary `Button`
+ (butter, chocolate, gothic, stone, y2k), the three selectors' `secondary`
+ triggers keep the default borderless, neutral-filled treatment instead of
+ matching it.
- `architecture:public-component-api` continues to own additive API admission,
defaults, and compatibility. `architecture:component-theming-surface`
continues to own target and visual-prop propagation.
## Verification
-| Contract | Verification | Representative states | Mutation or failure expectation |
-| -------- | ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
-| FR1, FR4 | Public type, default-prop, `data-variant`, theme-metadata, and docs checks | all three components; omitted value; each explicit value | A component omits a value, changes its default, publishes a different value, or accepts an untyped value |
-| FR2 | Resting browser pixels and focused DOM/style tests | each variant at rest; default and themed paint | Secondary reads as a field or ghost trigger, ghost gains an opaque resting fill, or the three resting roles collapse |
-| FR3 | Source review of variant-specific branches plus existing interaction, form, popup, keyboard, focus, and accessibility suites | popover, bottom sheet, adaptive; editable, disabled, and read-only where supported | A visual variant changes selection or overlay semantics, form output, focus, naming, role, or value |
-| FR5 | Focused status tests and browser width measurements | attached request on each variant; short/long MultiSelector and ComplexSelector values | Non-input status attaches, input-only status paint leaks, or a multi-value/rich selector changes available inline size |
-| FR6 | Focused InputGroup DOM/style tests plus rendered group geometry | secondary Selector and MultiSelector as first, middle, and last group children | A trigger keeps standalone edges/status paint, loses group height/focus stacking, or the connected surface splits |
+| Contract | Verification | Representative states | Mutation or failure expectation |
+| -------- | ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
+| FR1, FR4 | Public type, default-prop, `data-variant`, theme-metadata, and docs checks | all three components; omitted value; each explicit value | A component omits a value, changes its default, publishes a different value, or accepts an untyped value |
+| FR2 | Resting browser pixels beside a secondary Button, and focused DOM/style tests | each variant at rest; default theme and every theme that styles the secondary Button | Secondary's border, fill, or text differs from the theme's secondary Button, ghost gains an opaque fill, or roles collapse |
+| FR3 | Source review of variant-specific branches plus existing interaction, form, popup, keyboard, focus, and accessibility suites | popover, bottom sheet, adaptive; editable, disabled, and read-only where supported | A visual variant changes selection or overlay semantics, form output, focus, naming, role, or value |
+| FR5 | Focused status tests and browser width measurements | attached request on each variant; short/long MultiSelector and ComplexSelector values | Non-input status attaches, input-only status paint leaks, or a multi-value/rich selector changes available inline size |
+| FR6 | Focused InputGroup DOM/style tests plus rendered group geometry | secondary Selector and MultiSelector as first, middle, and last group children | A trigger keeps standalone edges/status paint, loses group height/focus stacking, or the connected surface splits |
## Decision log
### DEC-1 — MultiSelector and ComplexSelector adopt Selector's trigger hierarchy
**Reference:** `spec:AST-079/DEC-1`
-**Decider:** pending owner review
+**Decider:** `cixzhang`, 2026-10-14
Selector's current component contract already gives a caller three trigger roles.
A caller choosing the same role on a multi-value or rich-content selector should
not learn different names or receive a different default. MultiSelector and
ComplexSelector therefore adopt Selector's `input`, `secondary`, and `ghost`
vocabulary while keeping their separate interaction models and component-owned
-geometry.
+geometry. Their `secondary` matches the theme's secondary Button, as Selector's
+does under DD1, so one theme decision restyles every secondary control together.
Rejected: sibling-specific value names or partial vocabularies, which make the
same caller intent depend on selection model; a theme-only override, which cannot
-express caller intent through the public API; or promoting the draft sibling
-component records wholesale, which would approve unrelated claims.
+express caller intent through the public API; a fixed borderless neutral fill
+independent of the theme's secondary Button, which splits one toolbar into two
+hierarchies under any theme that borders its secondary Button; or promoting the
+draft sibling component records wholesale, which would approve unrelated claims.
## Open questions