Repository navigation
feat(theme): chat surfaces default to the container radius - #12482
kentonquatman merged 5 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Approval waits on an engineering owner. No current spec record sets the default of --radius-chat, its radius-scale step, or the alias this change adds at a theme root, so an engineering owner needs to provide or identify the governing spec for chat surfaces following the container radius. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner.
Still blocking once that is settled:
- With no theme, or any theme that does not set
--radius-chat, the composer's default send button drops from a 16px to an 8px corner on its 32px box, so it is no longer the circle the ChatSendButton record's FR7 requires; keep it on--radius-fullinside the composer, or have FR7 amended.
Also worth a look: the docs site's own theme does not set --radius-chat, so its chat demos move from 28px to 16px corners, and the Chinese ChatComposer description and the comment at ChatMessageBubble.tsx:112 still describe the old shape.
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims (description and changeset):
--radius-chatdefaulted to 28px whatever the container radius: verified (basetokens.stylex.ts).- Chat surfaces now default to the container radius: verified (
tokens.stylex.ts:261; Chromium with no theme gives 12px). - The shipped themes keep 28px, so nothing changes for their users: verified for Butter, Chocolate, Gothic, Matcha, Neutral and Stone (theme sources), with Neutral and Y2K frames pixel-identical.
- A theme that sets the container radius but not the chat radius declares the alias at its root, and a nested theme follows its own container: verified (
generateThemeRules.ts:554; new alias test). - A theme that sets or inherits the chat radius keeps it: verified (new test for an authored and an
extendsvalue). - The radius scale gives chat the container step: verified (
expandRadiusScale.ts:97; scale test 18px). - Y2K needs nothing and stays at 0px: verified (its radius scale has multiplier 0; frame identical).
- Probe sets 28px: verified (
probe-axes.mjsand the generatedprobeConfig.ts; probe check passes). - The concentric button corner is unchanged, and with a 12px corner the default send button becomes a rounded square: verified (
ChatComposer.tsx:154; 8px corner on 32px). This contradicts the ChatSendButton record's FR7. - The CLI theme copies, token docs and native default theme are regenerated: verified (bundle regenerates identically; token-doc check and native drift test pass).
- INV16 describes status roles, and this adds one more token to that mechanism: verified (INV16 text); no record covers the new token.
- 0 changed pixels across 48 shipped-theme frames: partly verified (Neutral and Y2K composer frames identical); the rest were not reproduced.
- Computed corners of 28px and a 16px send button in shipped themes: verified for Neutral; 0px for Y2K.
- A theme without the chat radius moves to its container radius, and adding 28px keeps the old look: verified (frames; changeset).
- The changeset says ChatComposer, its drawer and status bar, and ChatMessageBubble change, and composer buttons take normal corners: verified (frames: 28px to 12px; button 8px).
- The changeset says a theme scope that declares the token now replaces an inherited value: verified (generated root declaration).
- A patch bump for Core and the six themes with
[feat]: verified (check:changesetspasses; a visual default change is patch-compatible). - The tests named in the description pass: verified with a wider node run (6,244 passed) and a UI run over theme, Chat and Button (2,567 passed); the knowledge check was not run.
- Depends on #12481: verified (base branch).
Files:
packages/core/src/theme/tokens.stylex.ts: comment suggestion.packages/core/src/theme/expandRadiusScale.ts: clear.packages/core/src/theme/generateThemeRules.ts: comment wrap suggestion.packages/core/src/theme/expandRadiusScale.test.ts: clear.packages/core/src/Chat/ChatComposer.tsx: send button loses its circular corner (blocking).packages/core/src/Chat/ChatComposer.doc.mjs: Chinese description not updated..changeset/chat-surfaces-now-default-to-the-container-radiu-q0fy.md: clear.packages/themes/{butter,chocolate,gothic,matcha,neutral,stone}/src/*Theme.ts: clear.packages/cli/assets/templates/themes/{butter,chocolate,gothic,matcha,neutral,stone}/*Theme.ts: clear (generated, identical).packages/themes/probe/src/probeConfig.tsand.github/scripts/visual-gate/lib/probe-axes.mjs: clear.packages/cli/assets/docs/tree/tokens-radius.doc.mjs: clear (generated).packages/cli/assets/theme.template.ts: clear.packages/native/apple/Sources/Astryx/Theme/Generated/DefaultTheme.swift: clear (generated, drift test passes).
There was a problem hiding this comment.
Approval waits on an engineering owner. No current spec record sets the default of --radius-chat, the alias this change adds at a theme root, or how a radius scale treats it, so an engineering owner needs to provide or identify the governing spec for chat surfaces following the container radius. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner.
Still blocking once that is settled:
- With no theme, or any theme that does not set
--radius-chat, the composer's default send button drops from a 16px to an 8px corner on its 32px box, so it is no longer the circle the ChatSendButton record's FR7 requires; keep it on--radius-fullinside the composer, or have FR7 amended.
Also worth a look: the docs site's own theme does not set --radius-chat, so its chat demos move from 28px to 16px corners; the Chinese ChatComposer description and the comment at ChatMessageBubble.tsx:112 still describe the old shape; and the earlier inline notes on tokens.stylex.ts and generateThemeRules.ts still apply.
Claims and files checked
Review mode: full; reason: author-not-engowner
Claims (description and changeset):
--radius-chatdefaulted to 28px whatever the container radius: verified (basetokens.stylex.ts).- Chat surfaces now default to the container radius: verified (
tokens.stylex.ts:261; Chromium with no theme gives 12px). - The shipped themes keep their 28px chat corners, so nothing changes for their users: verified for Butter, Chocolate, Gothic, Matcha, Neutral and Stone in source, with Neutral, Matcha and Y2K composer frames and Neutral bubble frames pixel-identical.
- A theme that sets the container radius but not the chat radius declares the alias at its root, so a nested theme follows its own container: verified (
generateThemeRules.ts:554; new alias tests; built theme CSS). - A theme that sets or inherits the chat radius keeps it: verified (new test for an authored and an inherited value).
- A radius scale no longer sets the chat radius (it set the page step), so chat also follows a container set over the scale: verified (base scale used the page step; head removes it; scale and container-over-scale tests).
- Y2K needs nothing and its chat corners stay 0px: verified (frame identical; computed 0px).
- The probe fixture sets 28px: verified (probe source and its generated config; probe check passes).
- The concentric button corner is unchanged, and the default send button becomes a rounded square where the chat radius is not set: verified (
ChatComposer.tsx:154; 8px corner on 32px). This contradicts the ChatSendButton record's FR7. - The CLI theme copies, radius token docs and native default theme are regenerated: verified (all regenerate identically).
- The status-role alias rule describes status roles and this adds one more token to the same mechanism: verified; no record covers the new token.
- 0 changed pixels across 48 shipped-theme frames: partly verified (4 shipped-theme frames identical); the rest were not reproduced.
- Computed corners of 28px for the composer, drawer and bubbles and 16px for the send button in shipped themes: verified for Neutral; Y2K 0px.
- A theme without the chat radius moves to its container radius, and adding 28px keeps the old look: verified (frames; changeset).
- The changeset says ChatComposer, its drawer and status bar and ChatMessageBubble change, and composer buttons take their normal corners: verified (28px to 12px; buttons 16px to 8px).
- The changeset says a theme scope that declares the token now replaces an inherited value: verified (generated root declaration).
- Patch bumps for Core and six themes with
[feat]: verified (changeset check passes; a visual default change is compatible). - The tests named in the description pass: verified with the same UI paths without Thumbnail (2,567 passed) and the same node paths (1,587 passed); the knowledge, changeset, probe and token-doc checks pass.
- Depends on #12481: verified (base branch).
Files:
packages/core/src/theme/tokens.stylex.ts: comment suggestion.packages/core/src/theme/generateThemeRules.ts: comment wrap suggestion.packages/core/src/theme/expandRadiusScale.ts: clear.packages/core/src/theme/expandRadiusScale.test.ts: clear.packages/core/src/Chat/ChatComposer.tsx: send button loses its circular corner (blocking).packages/core/src/Chat/ChatComposer.doc.mjs: Chinese description not updated..changeset/chat-surfaces-now-default-to-the-container-radiu-q0fy.md: clear.packages/themes/{butter,chocolate,gothic,matcha,neutral,stone}/src/*Theme.ts: clear.packages/cli/assets/templates/themes/{butter,chocolate,gothic,matcha,neutral,stone}/*Theme.ts: clear (generated, identical).packages/themes/probe/src/probeConfig.tsand.github/scripts/visual-gate/lib/probe-axes.mjs: clear.packages/cli/assets/docs/tree/tokens-radius.doc.mjs: clear (generated).packages/cli/assets/docs/author-a-theme.doc.mjs: clear.packages/cli/assets/theme.template.ts: clear.packages/native/apple/Sources/Astryx/Theme/Generated/DefaultTheme.swift: clear (generated, identical).
03bd843 to
ccf2962
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner. No current spec record sets the default of --radius-chat, the alias this change adds at a theme root, or how a radius scale treats it, so an engineering owner needs to provide or identify the governing spec for chat surfaces following the container radius. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner.
Still blocking once that is settled:
- The description still says the default send button becomes a rounded square with a 16px computed corner, but
ChatSendButton.tsx:70now keeps it a circle inside a composer (Butter keeps 16px through its own override), so update the "What changes" bullet and the computed-corner sentence to match.
The send button now keeps the circle the ChatSendButton record requires, and the earlier notes on comments, the Chinese description and the docs site theme are fixed. Two small notes are inline: the changeset's send-button sentence also applies to themes with a chat corner under 28px, and Butter's older button comment still says the composer rounds buttons fully.
Claims and files checked
Review mode: full; reason: author-not-engowner
Claims (description):
- The chat radius defaulted to 28px whatever the container radius: verified (base
tokens.stylex.ts). - Chat surfaces now default to the container radius: verified (
tokens.stylex.ts:259; 12px in Chromium with no theme). - The shipped themes keep their 28px chat corners, so nothing changes for their users: verified (six pins; Neutral, Butter, Matcha, Y2K and probe composer frames pixel-identical).
- A theme that sets the container but not the chat radius declares the alias at its root, a nested theme follows its own container, and a theme that sets or inherits the chat radius keeps it: verified (new tests; built theme CSS).
- A radius scale no longer sets the chat radius (it set the page step), and chat follows a container set over the scale: verified (
expandRadiusScale.ts:88-95; tests). - Six themes and the probe fixture pin 28px, and Y2K stays at 0px: verified; the docs site theme also pins 28px, which the description does not list.
- The concentric button corner is unchanged, so with no chat radius set the default send button is a rounded square: false; the other buttons take their normal corner, but the send button stays a circle (
ChatSendButton.tsx:70). - The CLI theme copies, radius token docs and native default theme are regenerated: verified (all regenerate identically).
- The status-role alias rule describes status roles and this adds one more token to it: verified; no record covers the new token.
- No changed pixels across the shipped-theme galleries: partly verified (five shipped-theme composer frames and Butter's send button identical); the rest were not reproduced.
- Computed corners match, with 16px for the send button where the theme does not round buttons: false for the send button (a full radius in Neutral and the probe, 16px only in Butter); verified for the composer, drawer and bubbles.
- A theme without the chat radius moves to its container radius, and adding 28px keeps the old look: verified.
- The named tests and checks pass: verified (2,601 UI and 1,587 node tests passed; knowledge, changeset, probe and token-doc checks pass).
- Depends on #12481: verified (base branch).
Claims (changeset):
- The default, root alias and scale changes: verified, as above.
- ChatComposer, its drawer and status bar and ChatMessageBubble change corners, and the composer's buttons take their normal corners: verified (28px to 12px; buttons 16px to 8px).
- The send button stays circular inside a composer, as outside one: verified.
- A theme with controls taller than 32px whose send button was a rounded square now draws a circle unless it sets the send-button radius: verified, but narrower than the change (a chat corner under 28px changes too).
- The six themes pin 28px, Butter keeps its 16px send-button corner and Y2K stays square: verified (frames identical).
- Set the token in the theme rather than on
:root, because a theme scope that declares it replaces an inherited value: verified (alias at the theme root). - Patch bumps with
[feat]: verified (changeset check passes).
Files:
packages/core/src/theme/tokens.stylex.ts,generateThemeRules.ts,expandRadiusScale.ts,expandRadiusScale.test.ts: clear.packages/core/src/Chat/ChatSendButton.tsx,ChatSendButton.test.tsx,ChatComposer.tsx,ChatComposer.doc.mjs,ChatMessageBubble.tsx: clear..changeset/chat-surfaces-now-default-to-the-container-radiu-q0fy.md: send-button sentence narrower than the change (non-blocking).packages/themes/butter/src/butterTheme.ts: olderbuttoncomment contradicts the new one (non-blocking).packages/themes/{chocolate,gothic,matcha,neutral,stone}/src/*Theme.ts: clear.packages/cli/assets/templates/themes/*/*Theme.ts(six copies): clear (generated, identical).packages/themes/probe/src/probeConfig.ts,.github/scripts/visual-gate/lib/probe-axes.mjs: clear.apps/docsite/src/themes/astryxTheme.ts: clear.packages/cli/assets/docs/tree/tokens-radius.doc.mjs,packages/cli/assets/docs/author-a-theme.doc.mjs,packages/cli/assets/theme.template.ts: clear.packages/native/apple/Sources/Astryx/Theme/Generated/DefaultTheme.swift,internal/eslint-plugin-astryx/no-comment-provenance.baseline.json: clear (generated, up to date).
727ffb3 to
40f111c
Compare
6fc46f8 to
cd8571f
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner: no current spec record sets the default of --radius-chat, the alias this change adds at a theme root, or how a radius scale treats the token, so an engineering owner needs to provide or identify the governing spec for chat surfaces following the container radius. What must be settled is whether --radius-chat defaults to var(--radius-container) (12px instead of 28px with Core defaults, and a radius scale's container step instead of its page step) for Core with no theme and for every theme that does not set it. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner.
No other finding remains: the description matches what ships, the send button keeps its circle, and the shipped themes render unchanged.
Claims and files checked
Review mode: full; reason: author-not-engowner
Claims (description):
- The chat radius defaulted to 28px whatever the container radius: verified (the base token default).
- Chat surfaces now default to the container radius: verified (
tokens.stylex.ts:259; 12px in Chromium with no theme, 20px with a 20px container). - The shipped themes keep their 28px chat corners, so nothing changes for their users: verified (pins in six themes; Neutral, Butter, Matcha, Y2K and probe composer frames pixel-identical).
- A theme that sets the container but not the chat radius declares the alias at its root, a nested theme follows its own container, and a theme that sets or inherits the chat radius keeps it: verified (new tests; built theme CSS).
- A radius scale no longer sets the chat radius (it set the page step), and chat follows a container set over the scale: verified (
expandRadiusScale.ts:88-95; tests). - Six themes, the probe fixture and the docs site theme pin 28px, and Y2K pins 0px so a theme that extends it stays square: verified.
- The send button stays circular inside a composer and a theme that sets the button or send-button radius still wins: verified (
ChatSendButton.tsx:70; full radius with no theme, in Neutral, in the probe and with a 16px chat corner; theme rules sit in a layer above component styles). - Before, a theme with controls taller than 32px drew the send button as a rounded square, and Butter keeps that 16px corner with a rule scoped to the composer: verified (16px on Butter's 40px button before and after).
- Other buttons in the composer keep the concentric corner, which is their normal corner with a 12px corner and 12px padding: verified (16px to 8px with no theme).
- The CLI theme copies, the radius token docs and the native default theme are regenerated: verified (each regenerates identically).
- The status-role alias rule describes status roles and this adds one more token to it: verified; no record covers the new token.
- No changed pixels across the shipped-theme galleries: partly verified (Neutral, Butter, Matcha dark, Y2K and probe composer frames and Butter's send button identical); the dark, touch and footer-menu galleries were not reproduced.
- Computed corners: 28px for the composer, drawer and bubbles (0px in Y2K), a full-radius send button on 32px controls, 16px in Butter, square in Y2K: verified.
- A theme without the chat radius moves to its container radius, and adding 28px keeps the old look: verified.
- The new tests fail without the fix: verified (the send-button test and four of the five new radius tests fail on the base).
- The named test runs pass: verified (2,568 UI tests passed; the node run passed 570 with 1 skipped of 571); the knowledge, changeset, probe-theme, token-doc and comment-baseline checks pass.
- Depends on #12481: verified (the base branch).
Claims (changeset):
- The default, root alias and scale changes: verified, as above.
- ChatComposer, its drawer and status bar and ChatMessageBubble change corners, and the composer's buttons take their normal corners: verified (28px to 12px; buttons 16px to 8px).
- The send button stays circular inside a composer, and a theme whose composer corner made it a rounded square (controls taller than 32px, or a chat corner under 28px) now draws a circle unless it sets the send-button radius: verified.
- Six themes pin 28px, Butter keeps its 16px send-button corner, Y2K pins 0px and stays square, and a theme that extends one of them keeps that chat radius: verified.
- Set the token in the theme rather than on
:root, because a theme scope that declares it replaces an inherited value: verified. - Patch bumps with
[feat]: verified (the changeset check passes).
Files:
packages/core/src/theme/tokens.stylex.ts,generateThemeRules.ts,expandRadiusScale.ts,expandRadiusScale.test.ts: clear (the default awaits an owner decision).packages/core/src/Chat/ChatSendButton.tsx,ChatSendButton.test.tsx,ChatComposer.tsx,ChatComposer.doc.mjs,ChatMessageBubble.tsx: clear..changeset/chat-surfaces-now-default-to-the-container-radiu-q0fy.md: clear.packages/themes/{butter,chocolate,gothic,matcha,neutral,stone,y2k}/src/*Theme.ts: clear.packages/cli/assets/templates/themes/*/*Theme.ts(seven copies): clear (generated, identical).packages/themes/probe/src/probeConfig.ts,.github/scripts/visual-gate/lib/probe-axes.mjs: clear.apps/docsite/src/themes/astryxTheme.ts: clear.packages/cli/assets/docs/tree/tokens-radius.doc.mjs,packages/cli/assets/docs/author-a-theme.doc.mjs,packages/cli/assets/theme.template.ts: clear.packages/native/apple/Sources/Astryx/Theme/Generated/DefaultTheme.swift,internal/eslint-plugin-astryx/no-comment-provenance.baseline.json: clear (generated, up to date).
56535cb to
fe24e2c
Compare
--radius-chat now defaults to var(--radius-container) instead of 28px. A theme that sets --radius-container but not --radius-chat declares the alias at its root, the way --duration-exit follows --duration-fast, so a nested theme follows its own container. The radius scale gives chat the container step. Butter, Chocolate, Gothic, Matcha, Neutral and Stone set --radius-chat to 28px, and so does the probe fixture, so they look the same. Y2K stays at 0px. The CLI theme copies, the token docs and the native default theme are regenerated.
A radius scale set --radius-chat to its container step as a fixed value, so a theme that set --radius-container over its scale got chat corners that did not match its containers. The scale no longer sets the chat radius: the theme root declares --radius-chat: var(--radius-container), as it does for a theme that sets the container itself.
With chat corners at the container radius, the composer's concentric button radius gave the send button an 8px corner on its 32px box. The send button now declares --_button-radius itself, so it stays circular inside a composer as it is outside one; a theme that sets the button or send-button radius still wins. Butter keeps the 16px corner its 40px send button had, and the docs site keeps its 28px chat corners. Also: comment and Chinese description follow-ups, and the refreshed comment-provenance baseline.
Butter's button comment said the composer rounds its buttons fully; the changeset names both themes whose send button becomes a circle.
Y2K's square chat corners came from its multiplier-0 radius scale. A theme that extends Y2K and sets its own container radius would now follow that container, so Y2K sets --radius-chat: 0px, as the other Astryx themes set 28px.
40f111c to
b1a7cbd
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner: no current spec record sets the default of --radius-chat, the alias this change adds at a theme root, or how a radius scale treats the token, so an engineering owner needs to provide or identify the governing spec for chat corners. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner.
There are no blocking findings: the send button stays circular inside a composer, as its spec requires, and the shipped themes render unchanged.
mainhas since moved the theme-root alias table intopackages/core/src/theme/statusRoleDefaults.ts, so this head conflicts withmaininpackages/core/src/theme/generateThemeRules.ts; the new['--radius-chat', '--radius-container']pair moves there when the branch rebases ontomain.
Claims and files checked
Review mode: full; reason: author-not-engowner
Claims:
- The chat radius token defaulted to 28px and now defaults to the container radius: verified (tokens source and a new test).
- A theme that sets its container but not the chat radius declares the alias at its root, and a theme that sets or inherits the chat radius keeps it: verified (new theme-compilation tests, which fail on the base).
- A radius scale no longer sets the chat radius: verified (the scale source and its test).
- The six themes, the probe fixture and the docs site theme pin 28px, and Y2K pins 0px because its square corners came from its zero-multiplier scale: verified (theme sources; Y2K's base scale has multiplier 0).
- The send button stays circular inside a composer, and a theme that sets the button or send-button radius still wins: verified (browser probe: a circle with no theme, in Neutral and with a 16px chat corner; built theme rules sit in the theme layer).
- Butter keeps its 16px send-button corner, and the other composer buttons keep the concentric corner: verified (browser probe).
- The CLI theme copies, the radius token docs and the native default theme are regenerated: verified (byte-identical copies, the token-docs check, the Swift generator).
- With no theme the composer, drawer and bubbles go from 28px to 12px, and every shipped theme renders unchanged: verified (browser frames for no theme and for each shipped theme in one state; the pixel counts were not recounted).
- The changeset's account of who changes, how to keep 28px, and that a theme scope now replaces an inherited value: verified (source and probe).
- A follow-up pull request adds an upgrade step that pins 28px: verified (that pull request is open and stacked on this one).
- The new send-button test fails without the fix, and the stated test runs pass: verified (red-first run; 2568 UI tests and 570 node tests passed, 1 skipped).
Files:
.changeset/chat-surfaces-now-default-to-the-container-radiu-q0fy.md: clear.github/scripts/visual-gate/lib/probe-axes.mjs: clearapps/docsite/src/themes/astryxTheme.ts: clearinternal/eslint-plugin-astryx/no-comment-provenance.baseline.json: clear (regenerated)packages/cli/assets/docs/author-a-theme.doc.mjs: clearpackages/cli/assets/docs/tree/tokens-radius.doc.mjs: clear (regenerated)packages/cli/assets/templates/themes/{butter,chocolate,gothic,matcha,neutral,stone,y2k}/*Theme.ts (7 files): clear (copies identical to the theme sources)packages/cli/assets/theme.template.ts: clearpackages/core/src/Chat/ChatComposer.doc.mjs: clearpackages/core/src/Chat/ChatComposer.tsx: clearpackages/core/src/Chat/ChatMessageBubble.tsx: clearpackages/core/src/Chat/ChatSendButton.test.tsx: clearpackages/core/src/Chat/ChatSendButton.tsx: clearpackages/core/src/theme/expandRadiusScale.test.ts: clearpackages/core/src/theme/expandRadiusScale.ts: awaits the owner decision on the scale's handlingpackages/core/src/theme/generateThemeRules.ts: awaits the owner decision on the alias; conflicts with mainpackages/core/src/theme/tokens.stylex.ts: awaits the owner decision on the defaultpackages/native/apple/Sources/Astryx/Theme/Generated/DefaultTheme.swift: clear (regenerated)packages/themes/{butter,chocolate,gothic,matcha,neutral,stone,y2k}/src/*Theme.ts (7 files): clearpackages/themes/probe/src/probeConfig.ts: clear
36597c3
into
fix/chat-drawer-follows-composer-radius
User impact
--radius-chatdefaulted to 28px, so chat surfaces (the composer, its drawer and status bar, message bubbles) were rounder than everything else in a theme that did not set it, whatever its container radius. They now default to the theme's container radius. The shipped themes set--radius-chatthemselves, so nothing changes for people using them; a theme that does not set it gets chat corners that match its cards.Visual authority
Choose one and link it:
DDrow reused or amended.Design decisionstable by a team design owner.docs/design/.None yet. Design owner decision (@kentonquatman): chat surfaces default to the container radius. No current record sets the default of
--radius-chat, so this needs an engineering owner's approval.architecture:theme-compilationINV16 describes the generated root alias in terms of status roles; this adds one token to the same mechanism.What changes:
--radius-chatdefaults tovar(--radius-container)instead of28px.--radius-containerbut not--radius-chatdeclares--radius-chat: var(--radius-container)at its root, the way--duration-exitfollows--duration-fast, so a nested theme follows its own container. A theme that sets or inherits--radius-chatkeeps it.--radius-chat(it set the page step, base × 7 × multiplier), so chat follows the container also where a theme sets its container over the scale.--radius-chat: 28px, and so do the Probe fixture and the docs site's theme. Y2K sets0px: its square corners came from its multiplier-0 radius scale, so a theme that extends it and sets its own container stays square.component:ChatSendButtonFR7 requires: it declares--_button-radius: var(--radius-full)itself, so the composer's concentric radius no longer reaches it; a theme that sets the button or send-button radius still wins. Butter keeps the 16px corner of its 40px send button with achat-send-buttonrule scoped to the composer. The other buttons in the composer keep the concentric corner.Before and after
Chromium, compared pixel by pixel with main:
Release note: a theme that does not set
--radius-chatchanges, from 28px to its container radius. Add--radius-chat: 28pxto its tokens to keep the old corners; #12483 adds anastryx upgradestep that does it.State matrix
lgbreakpoint, where Neutral, Butter and Chocolate change their type scale)Each gallery covers the composer with header, footer and send actions, the drawer expanded and collapsed, status above and below, compact, flat, disabled with Stop, a drawer and send buttons outside a composer, and single, grouped and compact message bubbles.
Scope
Components: ChatComposer, ChatComposerDrawer, ChatSendButton, ChatMessageBubble (through the token), theme compilation, radius scale
Testing
expandRadiusScale.test.tscases: the default, the alias in a theme that sets only its container, the alias with a radius scale and with a container set over the scale, and a theme that sets or inherits the token.ChatSendButton.test.tsxcase: inside a composer the send button declares--_button-radius: var(--radius-full). It fails without the fix.vitest run --project ui packages/core/src/theme packages/core/src/Chat packages/core/src/Button: 2568 passed.vitest run --project node packages/themes packages/native .github/scripts/visual-gate check-theme-template check-cli-theme-bundle theme-package-module-format: 571 passed.visual:probe-theme:check,check:knowledge,check:changesets, the token docs check, and the comment-provenance baseline check.Depends on #12481.