Repository navigation
spec(AST-071): every styling input works from every styling system - #7277
Conversation
A part's styling input is the full set the root already takes — <part>Xstyle, <part>ClassName and <part>Style on the same element — or it is not admitted, so a product that styles with class names or inline styles can reach every part StyleX can. public-component-api gains the invariant; the three released props that do not conform are named as known gaps, not precedent.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report
|
There was a problem hiding this comment.
Thanks for framing this as one explicit decision. The direction is coherent: a part that can only be reached through StyleX leaves class-name and inline-style users locked out, and each unpaired part prop becomes precedent for the next.
Approval needs a maintainer decision before this can land as governing policy. Current public-API authority settles the root xstyle / className / style set, but it does not settle part styling inputs, so a maintainer needs to ratify the new rule as the governing spec for <part>Xstyle / <part>ClassName / <part>Style and for disallowing StyleX-only styling props. That decision should also make the authority form explicit, since the new spec is still marked draft/proposed while the shared record it updates is current.
One correction is also needed in the record itself: BaseTypeahead.inputXStyle does not fit the other two listed gaps as written, because its input already receives the root className and style alongside both StyleX inputs. Please remove or qualify that entry as a legacy alias case, or tighten the rule wording if same-prefix counterparts are intended even when the root set reaches the same element.
The other two listed gaps do match the StyleX-only part pattern, and the change correctly leaves admission of any specific part prop, composition order, and theming with their existing owners.
[Automated review]
|
/approve-spec aa45fec |
|
Advisory; the owner approves. Spec-only and clean: the knowledge check and Prettier pass, it merges cleanly onto today's [Automated review] |
Approved by cixzhang on 2026-10-11.
|
/approve-spec 6da2e06 |
Exact decision needed
Whether a component may accept a StyleX styling input for one of its parts (
popoverXstyle,contentXstyle,triggerXstyle) without matching class-name and inline-style inputs for the same element.Existing authority searched
architecture:public-component-api: INV5 and INV6 say the root'sxstyle,classNameandstylereach the contract element and compose. Neither says anything about elements other than the root.spec:AST-002/DEC-1: admission of a new prop. It decides whether a part input may exist, not what shape it takes.architecture:component-style-authoringandarchitecture:theme-tokens: StyleX inside components, and token access for non-StyleX consumers. Neither covers component styling props.packages/core/src. Three conform to neither rule:ComplexSelector.contentXstyle,ContextMenu.triggerXstyle,BaseTypeahead.inputXStyle. An internaltriggerXstylein the Table context menu is not reachable and is out of scope.popoverXstylealone and is the prompt for this decision.No current claim settles it, which is why one-off part
xstyleprops keep being added and then cited as precedent.Decision
spec:AST-071/DEC-1, decided by @cixzhang: every styling input works from every styling system.<part>Xstyle,<part>ClassNameand<part>Style. All three reach the same element and compose the way the root's three do.architecture:public-component-apigains INV15, a verification row, and the deciding-spec entry.Rejected alternatives
xstylealone and adding its counterparts on request. Callers who don't use StyleX stay locked out until someone asks, and every unpaired prop becomes the precedent for the next one.Claim scope and non-goals
spec:AST-002/DEC-1, so this record does not makepopoverXstyleacceptable even with counterparts.Evidence and implementation relationship
There is no implementation in this PR. The prop inventory above is the evidence that the gap exists.
Writing rubric results
Scope
Validation
pnpm check:knowledge: alignedgit diff --check: clean