You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 00bd2da
Browse filesBrowse the repository at this point in the historyBrowse files
fix(spec): the 18.x action-block variant entry no longer says element:button keeps destructive
element:button spells the destructive arm `danger` and refuses
`destructive`; only the record blocks that forward a variant to the
Button primitive unchanged (record:quick_actions, a record:alert action)
still take the primitive's `destructive`. Corrects the D3 entry's reason
(printed by the upgrade guide), the D2 conversion's docblock and the
conversion test's wording, and pins the corrected sentence against the
rows it describes.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzjAFu9q3UWTLiMSuk9
fix(spec): the 18.x migration entry for the action-block `destructive` → `danger` rename no longer says `element:button` keeps `destructive` (#27589)
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
The D3 entry `ui-page-action-block-variant-destructive-refused` said that components drawing the Button primitive directly, "`element:button` and the like", keep `destructive`. That is false for `element:button`: `ElementButtonPropsSchema.variant` is `primary | secondary | danger | ghost | link`, so it already spells the arm `danger` and refuses `destructive` at the metadata save door and in `os validate`. An author who followed the sentence wrote a page the save door rejects. The entry's `reason`, which the upgrade guide prints, now says so, and names the two record blocks that do still take the React Button primitive's `destructive` because they forward a variant to it unchanged: `record:quick_actions` (`variant`) and a `record:alert` action (`action.variant`). The same correction is made to the docblock of the D2 conversion `page-action-block-variant-destructive-to-danger`. No schema, value or conversion behaviour changes.
11
+
12
+
**Supersedes, in the same release.** The `@objectstack/spec` 18 note for the rename says "Other components that draw the Button primitive directly (`element:button`, toasts, alerts, badges and the like) keep `destructive`". Read `element:button` out of that list: it spells the arm `danger`, as the action blocks now do.
0 commit comments