Skip to content

ui-kit: record the accepted OS text-scale type policy and file its implementation briefs #2603

Open

Description

@schlessera

Context

Every kit and app font size is a fixed pixel value, so the app ignores Android's system text size:

  • Kit components: 255 inline font: shorthands with a px size across 66 files under packages/ui-kit/src (245 literal, 10 computed, such as ${Number(p.titleSize) || 18}px). There are 16 distinct sizes from 8px to 24px. The most common are 10, 11, 9.5, 10.5 and 9px. There is no type-scale token: font in packages/ui-kit/src/tokens.ts:1275 holds families only.
  • Kit stylesheet: 31 px font declarations and no rem in packages/ui-kit/src/tokens.css. One example is .bk-askform .bk-field textarea's 13px at :2255.
  • App: 174 text-[Npx] classes in 55 files under packages/ui-react/src (88 × 11px, 61 × 10px). Plus 10 px font: shorthands and 8 numeric fontSize values.
  • App prose: only the markdown prose in packages/ui-react/src/theme.css (:166-383) uses rem/em.
  • Pixel geometry derived from font size:
    • The composer's cap is CEILING = 96 px from FONT_SIZE = 13.5 (FONT_SIZE, packages/ui-kit/src/chrome/Composer.tsx:163-166).
    • The voice strip's rows are fixed at 44/52px (packages/ui-react/src/components/voice/conversation-strip.tsx:40, :60).
    • The breakpoints are px (--breakpoint-tablet, packages/ui-react/src/theme.css:25-28).

Chrome for Android 146 scales 1rem with the OS text size when the page opts in with <meta name="text-scale" content="scale">. Samsung Internet (Chromium 143) and Firefox do not support the meta (MDN browser-compat-data). There, the page renders at the default size and pinch zoom still works. The host owns index.html, so the meta itself is schlessera/brain-hosting-template#34. It lands last, after the migration follow-ups this issue files have shipped and been verified, not merely after this issue closes.

Guide accessibility/respect-os-text-scale:

  • "Define font sizes using relative units (rem or em) rather than fixed pixels (px)."
  • "Do not set a custom font size on :root or html."
  • "Responsive breakpoints MUST NOT assume that text will remain at its default size."
  • "Test that text can be resized to at least 200% of its default size without loss of content or functionality."

Before this issue, no decision record covered type units. Neither design-kit.md nor its subjects state a unit rule; the px sizes come from the design drop as implemented.

Accepted type policy (maintainer, 2026-10-22)

The maintainer ruling accepts root-relative named type tokens without setting html/:root font-size. Exemptions are SVG/canvas-coordinate text (diagrams, maps, Graph labels), print pt and icons. Mono meta and badge digits scale; badge geometry uses em. The supplied decision note and mocks stand except that phone tab labels hide above 125% rather than being capped: use the ruled CSS em/container-query approach, no JS measurement, retain accessible names/active amber state and at least 44px targets.

Land exact-value aliases first with unchanged 100% baselines, then consolidate the 16 sizes to the approved nine steps as one reviewed stage-2 baseline update. Text-coupled fixed heights become min-height/lh; the composer ceiling becomes line-count-based and conversation rows grow. Breakpoints become 30/56.25/80/90em only after the Chrome146 text-scaling/media-query check; if that check fails, use app-root container queries at the same thresholds. Host text-scale opt-in lands last through brain-hosting-template#34.

The remaining deliverable here is the durable decision and scoped follow-up briefs, not migration code. Include the ruling’s eight-step landing order: record; exact-value tokens/lint; kit styles/geometry; app sizes/tab labels; verified responsive-query approach; 200%/320px real-browser checks; nine-step consolidation; host opt-in last. Each implementation follow-up assesses supported numeric props under the existing contract rules before changing them. No prior policy or design acceptance remains outstanding.

Scope

The policy is accepted; this issue records it and prepares the implementation. It produces:

Delivery of the policy is gated on those implementation issues, not on closing this one.

Out of scope

Acceptance criteria

  • The maintainer accepted the type policy, exemptions, icon-only tab threshold, stage-2 consolidation and verified breakpoint/fallback approach.
  • A design-kit decision entry is merged with the unit rule, the exemption list, the size-to-step table and the landing order.
  • The follow-up implementation issues are filed and attached to Epic: layout and type adapt to the phone's viewport, keyboard and text size #2596. Each names a real-browser check at 200% root size and at 320px width, and assesses supported numeric props under the contract rules before changing them.
  • The follow-up briefs retain the Chrome 146 query check and its explicit container-query fallback.
  • shell: declare theme colour per scheme and OS text scale in the app HTML brain-hosting-template#34's text-scale blocker names the follow-up(s) that complete the migration and the 200%/320px verification, replacing its blocker on this issue.

Verification

# Evidence for the design, run against the current tree:
grep -rhoE 'font: `[0-9]{3} [0-9.]+px' --include='*.tsx' packages/ui-kit/src | wc -l
grep -rhoE 'text-\[[0-9.]+px\]' packages/ui-react/src | wc -l
grep -oE 'font(-size)?: [^;]*[0-9.]+px' packages/ui-kit/src/tokens.css | wc -l
bun scripts/check-leakage.ts

Contract impact

  • This touches the integration contract, so it needs the contract label, a CONTRACT: commit prefix, and the doc updated in the same commit.
  • This changes a published package's behaviour, so it needs a changeset.

None: this issue produces a decision and follow-up issues. The follow-ups carry the changesets.

2026-10-24: retitled and retyped as documentation (type: docs): the policy is accepted, so this issue records it and files implementation briefs rather than deciding whether to adopt it. Made the implementation issues, not this issue's closure, the delivery gate (including for the host opt-in), and removed the superseded 2026-10-22 readiness notes (they are in the comments).

Activity

  1. added
    type: feat
    area: ui-react
    area: ui-kit
    priority: p3
    needs: decision
    needs: design
    on Oct 22, 2026
  2. schlessera commented on Oct 22, 2026

    @schlessera
    OwnerAuthor

    Design needed: the kit's type scale under a user's text-size setting.

    What is settled: every font size today is a fixed pixel literal, and Chrome for Android can scale rem with the OS setting once the host opts in. What is left is a judgement about type and layout. Which text scales and which does not? What scale do the 16 ad-hoc sizes collapse into? How do fixed-height components behave at twice the size? The code cannot settle this, because a mechanical px → rem swap scales text that should stay fixed, and it breaks rows sized to one line. The maintainer's ruling on the "Decision needed" section comes first. This prompt is for the design work after a "yes", or for the evidence behind a "no".

    You are designing how brain-kit's UI type responds to the Android OS text-size setting. brain-kit is a file-first knowledge base with a React chat PWA. The design kit is in packages/ui-kit; the app is in packages/ui-react.
    
    Read first
    - The issue this prompt is posted on, and its epic. Both are in schlessera/brain-kit; the epic is "Epic: layout and type adapt to the phone's viewport, keyboard and text size".
    - docs/decisions/design-kit.md (the index), docs/decisions/design-kit/components-and-interactions.md (D22 at :100; the 44px hit-target rule at :62; "the composer follows soft wrap" at :794-831), and docs/decisions/design-kit/overlays.md (D54 at :9).
    - The type in use today:
      - Inline `font:` shorthands in packages/ui-kit/src/**/*.tsx. There are 255 of them; find them with: grep -rhoE 'font: `[0-9]{3} [0-9.]+px' --include='*.tsx' packages/ui-kit/src | sort | uniq -c
      - packages/ui-kit/src/tokens.css: 31 px font rules.
      - `text-[Npx]` classes in packages/ui-react/src: 174 of them, mostly 11px and 10px.
      - packages/ui-kit/src/tokens.ts:1275 `font`, which holds families only.
    - Geometry derived from type:
      - packages/ui-kit/src/chrome/Composer.tsx:163-166 (FONT_SIZE 13.5, CEILING 96px).
      - packages/ui-react/src/components/voice/conversation-strip.tsx:40,60 (44/52px rows).
      - packages/ui-react/src/theme.css:25-28 (px breakpoints 480/900/1280/1440).
    - Google's guide "accessibility/respect-os-text-scale" (https://github.com/GoogleChrome/modern-web-guidance). It asks for rem/em sizes, no font-size on :root/html, breakpoints that do not assume default text size, and a 200% test.
    
    The problem
    At an Android text size of 130% or 200%, the app stays at 10-13px. Chrome 146+ will scale 1rem when the host adds <meta name="text-scale" content="scale">. Samsung Internet (Chromium 143) and Firefox will not. They keep the default size, and pinch zoom still works there.
    
    Design: answer each question
    1. Which text scales? List the surfaces that stay fixed and give the reason for each. Candidates: SVG/diagram/map labels positioned in px, mono meta at 8-9.5px, the print theme, badge digits inside fixed discs.
    2. The type scale. Map each of the 16 current px sizes (8, 9, 9.5, 10, 10.5, 11, 11.5, 12, 12.5, 13, 13.5, 14, 15, 18, 21/22, 24) to a named step expressed in rem. Say which sizes merge.
    3. Fixed-height components at 200%. Cover the conversation strip rows, the composer's 96px cap, the session strip (at most 94px, 44px while composing, per D52), tab bars and 44px rows. For each, say whether it grows, clips or truncates. Clipping meaning-bearing text is not allowed.
    4. Breakpoints. Do the 480/900/1280 thresholds move to em, so that a large text size gets the phone layout on a tablet? Or do they stay px?
    5. Order of work. Can the kit migrate before the app, or must both ship together so that mixed sizes never coexist?
    
    Requirements to hold
    - The 44px minimum hit target and "hit targets are not visual size" (components-and-interactions.md:62).
    - D22: one primary action per pane, one ambient animation, two background colours.
    - At 100%, nothing changes visually. The curated visual baselines (`bun run visual`) must stay byte-identical before any opt-in.
    - 320px width at 200% text: no horizontal scrolling of the page, and no overlapping or clipped text.
    - Firefox and Samsung keep today's rendering.
    - No font-size on :root or html.
    - Odysseus is the only example world in any mock. Never use real names.
    
    Deliverable
    - A short design note for a docs/decisions/design-kit entry: the unit rule, the exemptions, the size-to-step table and breakpoint units.
    - ASCII mocks of the chat screen (composer, session strip, one ask-user card) and of Settings, at 320px and 390px, each at 100% and 200%.
    - The list of follow-up implementation issues, in landing order.
    - Acceptable outcome: a documented "no". If the exemptions and fixed geometry make scaling worse than pinch zoom, say so with the evidence. That closes the issue.
    
  3. added
    type: spike
    and removed
    type: feat
    needs: design
    on Oct 22, 2026
  4. schlessera commented on Oct 22, 2026

    @schlessera
    OwnerAuthor

    2026-10-22 triage at main aa8c8966b59f031f054f4876dbca84048b40ae4f: classify the deliverable as type: spike: it produces a type-unit decision/design and follow-up briefs, explicitly excluding migration code. Remove needs: design as an input prerequisite because the spike produces that design; retain needs: decision for the explicitly required prior maintainer policy choice and keep agent-ready absent. The existing prompt remains an investigation input, not an approved design; no text-scaling policy is selected.

  5. schlessera commented on Oct 22, 2026

    @schlessera
    OwnerAuthor

    Design brief: type under the phone's text-size setting (1/2: the decision note)

    Recommendation: yes.

    A "no" is defensible: pinch zoom works everywhere and the migration touches about 470 call sites. It loses because pinch zoom on a chat app means panning sideways on every line, and that is the "loss of content or functionality" the 200 % rule is about.

    Draft decision entry

    Dxx: Type follows the reader's text size.

    • Units: every font size in the kit and the app is rem, through a named type token. Nothing sets font-size on :root or html.
    • Geometry coupled to text (row heights, the composer cap, strip heights) is min-height or lh/em, never a fixed px height.
    • Hit targets stay ≥ 44 px as a floor and may grow.
    • Breakpoints are em.
    • Exemptions (stay px, or are capped) are listed below. Anything not listed scales.

    1. What scales and what stays fixed

    Surface Rule Why
    Body, meta, labels, chips, buttons, cards, Settings scales Meaning-bearing text.
    Mono meta at 8–9.5 px (timestamps, costs, paths) scales It is the smallest text, so it needs scaling most. Not exempt.
    Badge digits in discs scales with its disc (disc sized in em) A fixed disc would clip the digit.
    Phone tab bar labels capped at 125 %: min(step, 1.25 × px) 5 slots × 64 px at 320 px. "Sessions" just fits at 125 % and overflows beyond. The icon and accessible name carry the rest.
    Text placed in SVG or canvas coordinates (diagrams, maps, Graph labels) fixed (px in viewBox) It is positioned in drawing space. Growing the text alone breaks the drawing. The whole figure zooms instead.
    Print theme fixed (pt) Paper, not a phone setting.
    Icons fixed px Not text. The 44 px target stays.

    2. The type scale

    There are 16 sizes today and 9 steps in the target. Stage 1 maps every size to a token with exactly its current value, so there is no visual change. Stage 2 repoints the aliases at their step (the "merges" column), as one deliberate baseline update.

    px today token (stage 1 = exact) target step rem merge at 100 %
    8 meta (alias 0.5rem) meta 0.5625 +1 px
    9 meta meta 0.5625 none
    9.5 meta (alias 0.59375rem) meta 0.5625 −0.5 px
    10 caption caption 0.625 none
    10.5 caption (alias 0.65625rem) caption 0.625 −0.5 px
    11 label label 0.6875 none
    11.5 label (alias 0.71875rem) label 0.6875 −0.5 px
    12 small small 0.75 none
    12.5 small (alias 0.78125rem) small 0.75 −0.5 px
    13 body (alias 0.8125rem) body 0.84375 +0.5 px
    13.5 body body 0.84375 none
    14 body (alias 0.875rem) body 0.84375 −0.5 px
    15 lead lead 0.9375 none
    18 title title 1.125 none
    21 / 22 heading heading 1.375 21 → +1 px
    24 display display 1.5 none

    Tokens live beside font in tokens.ts as type.* and as --bk-type-* in tokens.css. The 10 computed sizes, such as ${p.titleSize || 18}px, take a step name instead of a number.

    3. Fixed-height components at 200 %

    Component Today Rule at 200 %
    Conversation strip rows (44/52 px) height Grows. min-height: 44px / 52px. The label wraps to at most 2 lines, then ellipsis. The full name stays in the accessible name and the transcript.
    Composer cap (CEILING = 96 from FONT_SIZE = 13.5) px Grows, bounded. The cap becomes a line count equal to today's (N lh), capped at min(N lh, 35dvh), so at 200 % with the keyboard up the transcript keeps most of the screen.
    Session strip (≤ 94 px, 44 px while composing, D52) px Grows. max-height in lh. While composing: one row, min-height: 44px. The title truncates with ellipsis; the full title is in Sessions.
    Tab bar fixed Grows with min-height. Labels capped at 125 % (above).
    44 px list rows height Grows. 44 px is the floor (min-height). Subtitles wrap.
    Settings section strip one row Scrolls itself sideways (component scroll, never page scroll). The active section stays scrolled into view.

    Nothing meaning-bearing clips. Truncation only happens where the full text is one tap away.

    4. Breakpoints: move to em

    Breakpoint today becomes
    --breakpoint-* (480) 480 px 30em
    --breakpoint-* (900) 900 px 56.25em
    --breakpoint-* (1280) 1280 px 80em
    --breakpoint-* (1440) 1440 px 90em

    At 100 % these are identical. At 200 % a 900 px-wide tablet is 28em, so it gets the phone layout: the bottom bar and stacked panels, which is what large text needs.

    Check first (follow-up 4): confirm that Chrome 146 evaluates em media queries against the scaled initial size under text-scale. If it does not, the shell switches layout on a container query of the app root instead. The rule stays the same.

    5. Order of work: kit and app can migrate independently

    At 100 %, rem equals px, so a half-migrated tree renders identically. Mixed sizes can only appear once text is scaled, and that only happens after the host meta. So the gate is the meta, not the packages: brain-hosting-template#34 lands last, after the 200 % checks pass on both packages.

    Follow-up issues, in landing order

    1. ui-kit: type tokens with exact-value aliases, plus a lint rule that rejects px font sizes outside the exemption list. Baselines identical.
    2. ui-kit: migrate the 255 font: shorthands and the 31 tokens.css rules to tokens. Fixed heights move to min-height/lh. Composer CEILING becomes N lh. Baselines identical.
    3. ui-react: migrate the 174 text-[Npx], the 10 shorthands and the 8 fontSize values. Conversation strip rows to min-height. Tab label cap. Baselines identical.
    4. ui-react: breakpoints to em, with the Chrome 146 media-query check above. Baselines identical.
    5. Real-browser checks at 200 % and 320 px for kit and app, run with the browser's default font size at 32 px, which scales rem the way the OS setting does:
      • no page-level horizontal scroll
      • no overlapping or clipped text
      • hit targets ≥ 44 px
    6. ui-kit: collapse the aliases onto the 9 steps. This is a deliberate baseline update, reviewed as design.
    7. Host: shell: declare theme colour per scheme and OS text scale in the app HTML brain-hosting-template#34 adds <meta name="text-scale" content="scale">.

    Mocks follow in the next comment.

    For the maintainer

    • Yes or no on the rule above.
    • The tab-label cap at 125 % (keep labels) versus hiding labels beyond 125 % (icons only plus accessible names).
    • Whether stage 2 (the merges) is wanted at all, or the exact aliases stay as the scale.
  6. schlessera commented on Oct 22, 2026

    @schlessera
    OwnerAuthor

    Design brief: type under the phone's text-size setting (2/2: mocks)

    How to read these:

    • Grid: 1 column ≈ 10 px of width.
    • At 200 %, each glyph takes two columns, written as w o r d.
    • Chat screen: header, session strip (composing state), one ask-user card, composer, tab bar.
    • Example world: Odysseus.

    Chat: 320 px

     100 %                              200 %
    ┌──────────────────────────────┐   ┌──────────────────────────────┐
    │ Ithaca return              ⋯ │   │ I t h a c a  r e t u r n   ⋯ │
    │ ◂ ithaca · cyclops · +2      │   │ ◂ i t h a c a  ·  + 3        │ ← one row, min 44 px,
    ├──────────────────────────────┤   ├──────────────────────────────┤   title ellipsis
    │ note-filer asks              │   │ n o t e - f i l e r  a s k s │
    │ File “cyclops-cave” where?   │   │ F i l e  “ c y c l o p s -   │ ← wraps, never clips
    │ ( ) voyage/   ( ) crew/      │   │ c a v e ”  w h e r e ?       │
    │ [ Answer ]                   │   │ ( )  v o y a g e /           │ ← options stack
    │                              │   │ ( )  c r e w /               │   (rows ≥ 44 px)
    │ you  file the log            │   │ [  A n s w e r  ]            │
    ├──────────────────────────────┤   ├──────────────────────────────┤
    │ [Ask the brain…            ⏎]│   │ [ A s k  t h e  b r a i… ⏎ ]│ ← 1 line; grows to
    ├──────────────────────────────┤   ├──────────────────────────────┤   min(N lh, 35dvh)
    │ ◉     ◷      ◎      ▤     ⋯  │   │  ◉     ◷     ◎     ▤     ⋯   │
    │ Chat Sessions Actions Files  │   │ Chat Sessions Actio. Files   │ ← labels capped at
    └──────────────────────────────┘   │ More (taller bar, min-height)│   125 %
                                       └──────────────────────────────┘
    

    At 200 % the transcript scrolls under the card. The page never scrolls sideways.

    Chat: 390 px

     100 %                                     200 %
    ┌─────────────────────────────────────┐   ┌─────────────────────────────────────┐
    │ Ithaca return                     ⋯ │   │ I t h a c a  r e t u r n          ⋯ │
    │ ◂ ithaca · cyclops · scheria · +1   │   │ ◂ i t h a c a  ·  c y c l o … + 2   │
    ├─────────────────────────────────────┤   ├─────────────────────────────────────┤
    │ note-filer asks                     │   │ n o t e - f i l e r  a s k s        │
    │ File “cyclops-cave” where?          │   │ F i l e  “ c y c l o p s - c a v e ”│
    │ ( ) voyage/  ( ) crew/  ( ) inbox/  │   │ w h e r e ?                         │
    │ [ Answer ]                          │   │ ( )  v o y a g e /                  │
    │                                     │   │ ( )  c r e w /                      │
    │ you  file the log                   │   │ ( )  i n b o x /                    │
    │ ◆ Filed voyage/ithaca-return.md     │   │ [  A n s w e r  ]                   │
    ├─────────────────────────────────────┤   ├─────────────────────────────────────┤
    │ [Ask the brain…                   ⏎]│   │ [ A s k  t h e  b r a i n …       ⏎]│
    ├─────────────────────────────────────┤   ├─────────────────────────────────────┤
    │  ◉       ◷       ◎       ▤       ⋯  │   │  ◉       ◷       ◎       ▤       ⋯  │
    │ Chat  Sessions Actions  Files  More │   │ Chat  Sessions Actions Files  More  │
    └─────────────────────────────────────┘   └─────────────────────────────────────┘
                                                labels at the 125 % cap fit at 390
    

    Settings: 320 px

     100 %                              200 %
    ┌──────────────────────────────┐   ┌──────────────────────────────┐
    │ Settings                   ✕ │   │ S e t t i n g s            ✕ │
    │ Appearance Accounts Models ▸ │   │ A p p e a r a n c e  A c c ▸ │ ← strip scrolls itself,
    ├──────────────────────────────┤   ├──────────────────────────────┤   not the page
    │ Theme                        │   │ T h e m e                    │
    │ (•) System ( ) Paper ( ) Dark│   │ ( • )  S y s t e m           │ ← choices stack,
    │                              │   │ (   )  P a p e r             │   each ≥ 44 px
    │ Single-key shortcuts    [on] │   │ (   )  D a r k               │
    │ a / d on approvals, j / k in │   │ S i n g l e - k e y          │
    │ lists                        │   │ s h o r t c u t s       [on] │ ← label wraps, switch
    │                              │   │ a  /  d  o n  a p p r o v -  │   stays end-aligned,
    │                              │   │ a l s ,  j  /  k  i n  …     │   44 px target
    └──────────────────────────────┘   └──────────────────────────────┘
    

    Settings: 390 px

     100 %                                     200 %
    ┌─────────────────────────────────────┐   ┌─────────────────────────────────────┐
    │ Settings                          ✕ │   │ S e t t i n g s                   ✕ │
    │ Appearance Accounts Models Skills ▸ │   │ A p p e a r a n c e  A c c o u n ▸  │
    ├─────────────────────────────────────┤   ├─────────────────────────────────────┤
    │ Theme                               │   │ T h e m e                           │
    │ (•) System   ( ) Paper   ( ) Dark   │   │ ( • )  S y s t e m   (   )  P a p e r│
    │                                     │   │ (   )  D a r k                      │
    │ Single-key shortcuts           [on] │   │ S i n g l e - k e y  s h o r t -    │
    │ a / d on approvals, j / k in lists  │   │ c u t s                        [on] │
    │                                     │   │ a  /  d  o n  a p p r o v a l s ,   │
    │                                     │   │ j  /  k  i n  l i s t s             │
    └─────────────────────────────────────┘   └─────────────────────────────────────┘
    

    What the 200 % mocks show

    • No page-level horizontal scroll at 320 px. Only the Settings section strip scrolls sideways, inside its own component.
    • Growth is vertical. Groups of choices stack, and rows grow from their 44 px floor.
    • Truncation is limited to three places, all safe: the session-strip title, tab labels beyond 125 %, and the conversation-strip name after two lines. In each case the full text is one tap away.
    • At 100 % both columns on the left match today pixel for pixel. That is the stage-1 guarantee.
  7. added
    type: feat
    and removed
    type: spike
    on Oct 22, 2026
  8. schlessera commented on Oct 22, 2026

    @schlessera
    OwnerAuthor

    2026-10-22 concurrent-state reconciliation: the design note and mocks arrived after the earlier spike classification. Linked the supplied proposals and exact remaining choices into the current specification; preserve the concurrently restored type: feat and needs: decision. The earlier classification note is historical. No proposal is adopted and no migration or follow-up filing is authorized by this triage.

  9. schlessera commented on Oct 22, 2026

    @schlessera
    OwnerAuthor

    Maintainer ruling

    1. Yes: type becomes root-relative. Every font size is rem through a named type token, and nothing sets font-size on :root/html. The exemptions are text placed in SVG or canvas coordinates (diagrams, maps, Graph labels), the print theme (pt), and icons. Everything else scales, including mono meta and badge digits (whose discs are sized in em).
    2. Phone tab bar: labels hide above 125 %. At or below 125 % the labels show as today. Above it the bar is icons only. Each tab keeps its full accessible name, and the active tab still shows its amber state. This replaces the 125 % label cap in the brief. Implementation: the label is hidden when 1rem > 20px (125 % of 16 px). Use a container or media query in em; JS measurement is not allowed. Tab targets stay ≥ 44 px.
    3. Stage 2 is wanted. After the exact-value migration, the 16 sizes collapse onto the 9 steps in the table (meta, caption, label, small, body, lead, title, heading, display). The visual change is ±0.5–1 px and lands as one reviewed baseline update.
    4. Breakpoints move to em (30 / 56.25 / 80 / 90em). First, check that Chrome 146 evaluates em media queries against the text-scaled size. If it does not, the fallback is container queries on the app root, with the same thresholds.

    The rest of the brief stands: the fixed-height rules, the order of work (the host meta lands last), and the 200 % / 320 px checks. Brief: #2603 (comment) · Mocks: #2603 (comment)

    Updated tab-bar row (replaces the one in the brief)

    Component Rule at > 125 %
    Phone tab bar Icons only. Labels are visually hidden and kept as accessible names. The bar's min-height stays at the 44 px floor. The badge disc scales in em.
     ≤ 125 %                          > 125 % (here 200 %)
    ┌──────────────────────────────┐ ┌──────────────────────────────┐
    │ ◉     ◷      ◎      ▤     ⋯  │ │  ◉     ◷     ◎²    ▤     ⋯   │
    │ Chat Sessions Actions Files  │ │                              │
    └──────────────────────────────┘ └──────────────────────────────┘
                                       names: "Chat", "Sessions", "Actions, 2 need you", …
    

    Follow-ups to file (landing order)

    1. docs: design-kit entry with the unit rule, the exemptions, the size-to-step table, em breakpoints, and the tab-label rule above.
    2. ui-kit: type tokens with exact-value aliases, plus a lint rule against px font sizes. Baselines identical.
    3. ui-kit: migrate the font: shorthands and the tokens.css rules. Fixed heights move to min-height/lh. The composer CEILING becomes a line count. Baselines identical.
    4. ui-react: migrate the text-[Npx], shorthand and fontSize sizes. Conversation strip rows grow. Tab labels hide above 125 %. Baselines identical.
    5. ui-react: breakpoints to em, after the Chrome 146 media-query check (fallback: container queries).
    6. Real-browser checks at 200 % and 320 px (kit and app): no page-level horizontal scroll, no clipped or overlapping text, targets ≥ 44 px, and the tab bar icon-only above 125 %.
    7. ui-kit: stage 2, collapsing the aliases onto the 9 steps (reviewed baseline update).
    8. Host: shell: declare theme colour per scheme and OS text scale in the app HTML brain-hosting-template#34 adds the text-scale meta, last.
  10. added
    agent-ready
    and removed
    needs: decision
    on Oct 22, 2026
  11. schlessera commented on Oct 22, 2026

    @schlessera
    OwnerAuthor

    2026-10-22 readiness reconciliation: folded the maintainer ruling into the body, replacing the unresolved-choice specification and aligning scope/criteria with the accepted branch. The remaining work is explicitly scoped; add agent-ready. Preserve priority, native parent, assignment and release attribution. This is issue preparation, not implementation, runtime proof or delivery.

  12. changed the title [-]ui-kit: decide whether type scales with the phone's text-size setting[/-] [+]ui-kit: record the accepted OS text-scale type policy and file its implementation briefs[/+] on Oct 24, 2026
  13. added
    type: docs
    and removed
    type: feat
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyarea: ui-kitarea: ui-reactpriority: p3type: docs

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions