Repository navigation
Description
Context
Part of #3690. Found while integrating #3699 (draft #3735).
The tall VoiceField is a fixed 136px (.bk-voice-field[data-shape="tall"], packages/ui-kit/src/tokens.css:2781). It stacks the label row, the two-line VoiceText body (clamped to 40px, packages/ui-kit/src/tokens.css:2790) and the controls row (margin-top: auto, packages/ui-kit/src/tokens.css:2786). At 1× text that fits: 16 + 4 + 40 + 44 + 20 padding = 124px.
The app's enlarged-text audit (packages/ui-react/tests/browser/conversation-controls.offline.tsx, control audit … 320x480 text 2) doubles the field's text. With any body (a held draft, the L6 refusal line, the output-muted line or a client notice) the label wraps, and the content measures 160px inside the 136px field. The controls row then paints below the field's bottom edge. The controls stay 44px and still take their own taps, but the field no longer contains them. Without a body the field fits at 2×.
#3735 records this in its 2× baselines and asserts only that every control stays reachable at 2×. At 1× it keeps the strict containment check.
Scope
- Decide and implement how the tall field holds a body under enlarged text (WCAG 1.4.4) so its controls stay inside it.
- Add a kit story and visual baseline of the tall field with a body at doubled text.
- Restore the strict
scrollHeight <= clientHeightcontainment check at 2× inconversation-controls.offline.tsx(thecontainedhelper), and regenerate the affected app baselines.
Out of scope
- The 264px transcript promise at 320 × 568 in
docs/integration-contract/wire.md, which is about 1× text and stays unchanged. - Any change to which message the body shows, or to the controls row's contents (ui-react: wire live conversation (L1–L10) to the tall voice field #3699).
- Focus behaviour of disabled controls (ui-react: integrated accessibility for voice — announcements, focus and keyboard flows #3701).
Acceptance criteria
- At 320px with doubled text, the tall field contains its label, body and controls for every L1–L8 state that carries a body. This is proven by the strict containment check in
control audit … text 2andnotice with review … text 2, and the check fails on the current kit. - At 1× text, the field's 136px height and every existing voice baseline are unchanged, or any change is reviewed and signed off.
- A kit story shows the tall field with a body at doubled text, with a baseline in both themes.
Verification
The ui-react-layout project for conversation-controls.offline.tsx and the kit's voice visual tests, run in the pinned container.
Contract impact
None expected (kit CSS and tests).
Decisions (maintainer, 2026-11-09)
- R1: clamp only live draft words (the newest two lines); message bodies (refusal, output muted, client notices) are never clamped in the tall field.
- R2: accept the upward shift under enlarged text; 1x stays exactly 136px.
The design brief (comment, 2026-11-09) is the spec.
2026-11-09: design signed off; R1 and R2 ruled.
Activity
schlessera commentedon Nov 9, 2026
Design needed. The tall field's 136px height and its one-message body are signed off (#3699). What is left is how that fixed field behaves when text is doubled and a body is present: today the controls row overflows its bottom edge. The code cannot pick between growing the field, shortening the body or reflowing the label, because each choice changes the signed-off rhythm.
uploads-sh commentedon Nov 9, 2026
Tall VoiceField at 1x (136px, unchanged) and 2x text (grows, controls contained): L1+draft, L4+draft, L6 ·
afteruploads put <file> --issue 3773· docsschlessera commentedon Nov 9, 2026
Design brief: tall voice field under enlarged text
ui-kit components:
VoiceField(tall) is extended with CSS only: no new prop or component.VoiceStateLabel,VoiceTextandVoiceControlButtonare reused unchanged in markup, with the CSS changes below. New stories are listed at the end.Rule: the field grows, and nothing gives way
Under enlarged text no content is hidden, shortened or cut. Every piece of the field carries state that a binding decision relies on:
Draft · not sent yet,Reply audio off,mic off);So the answer to "which gives way first" is height. At 1× text nothing changes, because the content is 124px, which is below the 136px minimum.
CSS (kit,
tokens.css:2781-2801)min-height: at 1× the field is still exactly 136px (16 + 4 + 40 + 44 + 20 = 124 ≤ 136), so every existing 1× baseline should be pixel-identical.margin-left: auto, so it sits on the right while it fits, and moves under the word when it doesn't. It is never ellipsised in the tall field.2lhclamp: today's 40px clamp shows about 1.3 lines at the audit's 24px/1.3 text, which cuts a line through the middle.2lhis 40px at 1× (20px line height), so it is unchanged there, and two whole lines at any larger size. Draft words still keep the newest two lines (bottom-aligned, as now).tall).Order and placement
margin-top: auto, so it stays pinned to the field's bottom edge and the targets do not move between states. The transcript above gives up the height.L4 + draft (five controls)
The rule is the same. The controls are 44px icon buttons that do not scale with text, so the row (5 × 44 + 4 × 12) is the same width at 1× and 2×, and it does not wrap at 320. Only the label and body grow, exactly as for L1.
Desktop
The rule is the same. In the 720px column the label usually stays on one line at 2×, so the field grows less (about 161px for L1 + draft). At 1× it is 136px, as today.
Mocks
1× text · 320 (unchanged, 136px)
2× text · 320 (grows; controls inside)
Desktop (720 column)
Requirements check
min-heightequals today's height.containedcheck (scrollHeight <= clientHeight) can be restored incontrol audit … text 2andnotice with review … text 2. It fails on the current kit (fixed 136px).Stories (ui-kit, this issue)
Voice/Live/Tall field · enlarged text, at 320 and 1280, light and dark, with 200% text applied the same way as the app audit:Reply audio off+ Recover reply audio)Assert in each one: the field contains its controls, nothing is ellipsised in the label, and the body shows whole lines.
Open questions (
needs: decision)2lh, the L6 refusal sentence (and the longer client notices) can still cut at two lines when text is enlarged. Drafts are fine, since they intentionally show the newest words. Recommended: clamp only live draft words. A message body (refusal, output muted, client notice) is never clamped in the tall field, so at 2× L6 shows the whole sentence (≈ 254px at 320). This needs the kit to tell the two apart: eitherVoiceTextwithtext/partialis clamped whilechildrenis not, or adata-attribute is set from the existing props. The alternative is to accept a two-line cut of the refusal at 2×.schlessera commentedon Nov 9, 2026
Decision (maintainer, 2026-11-09):
VoiceTextwithtext/partialis clamped whilechildrenis not, or adata-attribute set from those props), with no new design.The design brief above is signed off with these branches. This issue is now
agent-ready.schlessera commentedon Nov 9, 2026
Claiming this (token
c3773-t3a8). Branch:fix/3773-tall-voice-enlarged-text. Implementing the signed-off brief with R1/R2: tall fieldmin-height, wrapping label,2lhclamp on live draft words only, and the enlarged-text stories and baselines. Concurrent work in the same files: #3764, #3735.schlessera commentedon Nov 9, 2026
Kit fix in #3779 (
Refs). The tall field now grows under enlarged text, and the enlarged-text stories and baselines are in. #3773 stays open for the app side: restoring the strictcontainedcheck at 2× in #3735'scontrol audit … text 2andnotice with review … text 2, which also needs its message bodies passed asVoiceTextchildren (R1). The steps are on #3735.A design observation outside the brief, for whoever reviews: at 2× the tall label row is taller than the meter's 28px solid top fade, and the reduced-motion level line can cross the body. The text reads over the meter on its glyph halo alone. The 1× fade check is not applied to the enlarged stories.
fix(ui-kit): the tall voice field grows to hold its body under enlarg…
schlessera commentedon Nov 9, 2026
Kit fix merged: #3779 as
9c7eb2582(milestone 0.45.0). The candidate proof run 42633113995 passed in every job (unit, browser, layout, captures, runtime, pack, endurance, verify).What landed:
Voice/Live/Tall field · enlarged textstories and their 20 baselines.Still open: the first acceptance criterion needs the strict 2×
containedcheck restored in #3735'scontrol audit … text 2andnotice with review … text 2, with message bodies passed asVoiceTextchildren. The steps are on #3735. Close this issue once that lands.fix(ui-react): draw the live field's messages as VoiceText children (#…
test(ui-react): restore strict 2× containment in the live field audit (…
test(ui-react): regenerate live field baselines over #3779 in the pin…
CONTRACT: feat(ui-react,ui-sdk,ui-server): draw live conversation in …