Repository navigation
docs(design): mobile typography — Pin target by desktop ratio - #6842
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.
Thank you for keeping this to one focused design record. The proposal is clear and internally consistent: the worked example checks out, the narrow-width plus coarse-pointer wording matches the current adaptation vocabulary, and the repository knowledge and formatting checks pass.
Approval needs a maintainer decision first. This record would make a new mobile Pin policy current — raising a below-16 base to 16, choosing Display 1, Heading 2, or Heading 3 as the preserved role from the desktop ratio, and applying that profile on coarse-pointer viewports. The existing current authority only settles the 16px floor for iOS text entry; it does not settle this whole-scale policy, the supported desktop base and ratio domain, or extending it beyond iOS.
A maintainer who owns design or engineering specs needs to approve this exact version to adopt the record as current, or point to the governing record that should own that choice instead. No separate code fix is being requested while that decision is pending.
[Automated review]
|
|
||
| No component-specific contract links are introduced. | ||
|
|
||
| ## Decision log |
There was a problem hiding this comment.
Is all this stuff below meant to be in the spec or in the actual docs on the doc site and in the CLI?
There was a problem hiding this comment.
Is docs/design/mobile-typography.md going to be in the doc or just spec?
(my intention was to put them in design spec, no CLI or doc site)
rubyycheung
left a comment
There was a problem hiding this comment.
I compared this with the Mobile Type sandbox from #4883. This PR matches the Pin model we designed there: floor the mobile base at 16px, re-derive the ratio so the selected role keeps its desktop size, and choose the pin target from the desktop ratio. Display 1 is recommended up to 1.25, Heading 2 between 1.25 and 1.414, and Heading 3 at 1.414 and above.
This is the behavior we want, so I’m approving it. I’d also like this recommendation added to the theme-authoring docs so people using a different scale can discover it.
Approval was submitted under the wrong identity.
Exact decision needed
Choose the mobile Pin target from the desktop typography ratio.
Existing authority searched
The
design:typography-hierarchydraft covers general text-role hierarchy, not this mobile size policy. A separate record has its own requirement set, owners, and approval lifecycle, as permitted by the design-record guide. The overlapping implementation is #6699.Decision
Propose
design:mobile-typography: a 16px-reference reading minimum, ratio-selected Pin target and size relationship, and the exclusive lg/1024px plus coarse-pointer condition. Exact-head owner approval is still required.Rejected alternatives
No additional selection or fallback policies are introduced.
Claim scope and non-goals
Only
docs/design/mobile-typography.mdis added. No implementation, API, theme, or audit changes.Evidence and implementation relationship
One numeric example and boundary/state verification cases are included. Related implementation: #6699. The broader hierarchy draft remains untouched.
Scope
Validation
pnpm check:knowledgeand base-aware knowledge validation.git diff --check.