Repository navigation
chore: land 12 approved pull requests together (batch 4) - #12738
Conversation
The icon-sets guide shows how to make a set in the app's own package, with no other package to make, install, or publish, and how to draw Core's own icons from it. In a private package, the new-set receipt leaves out the publishing steps and ends with the step that turns the set on.
… the centred names in a wide Calendar
…de block names the entry step and every listed definition
Stack's search card lists `Flex`, the name Chakra UI and Mantine use for a row or column of children, so a lookup for it suggests Stack before Layout.
Solid Buttons scope --color-text-primary to their fill content role and --color-neutral to a new --color-neutral-on-<fill> tint, so a neutral Badge in a primary Button reads white on a darkened tint (5.85:1 light, 5.16:1 dark) instead of dark text on a light tint (3.21:1, 2.82:1). Theme generation derives the tint for any theme that does not set it.
…o new tokens A solid Button publishes its fill pair to its content, and a neutral Badge there paints the pair inverted, which keeps the pair's contrast. The new neutral-on-fill tokens and their derivation come out.
…structive in the records
…inWidth
columns={{minWidth}} without max built minmax(<minWidth>px, 1fr), so a
360px floor in a phone column pushed the page sideways. The uncapped track
minimum is now min(100%, <minWidth>px), the same floor the capped form uses.
…rop and the fix in development
…he fix in development
… without max; note content-sized containers
ec561f0 to
44e1166
Compare
|
/approve-spec 44e1166 |
There was a problem hiding this comment.
Approved. This review checked all twelve fixes in the batch together. Each one is merged unchanged. Every changed record clause has an engineering owner's approval for this head, and every release note and description statement matches the code. No changes are needed.
Optional: two new comments in the checkbox and radio mark code have sentences longer than the comment style allows. The inline notes suggest shorter wording.
Claims and files checked
Review mode: full; reason: history
Claims:
- Twelve reviewed pull requests are combined in the stated order, each merged unchanged with a no-fast-forward merge: verified (each merge's second parent is that member's current head, and no merge resolves a conflict).
- Each member carries its own description and test plan: verified (all twelve descriptions).
- The Scope components list matches the changed files: verified.
- Each member is closed with a note when this merges: a statement about the merge process, not checkable in this code.
- Calendar weekday names no longer overlap at a larger text size, each column is at least as wide as its name, and names sit centred in a wide Calendar: verified (browser frames with enlarged names; the header and grid styles).
- CodeBlock without a
codestring throws an error in development that names the prop and the fix; production is unchanged: verified (missing-code test, including the development-only bundle check). - Grid
{minWidth}withoutmaxshrinks a lone column to a narrow container, and a content-sized container now takes the content width as a capped Grid already did: verified (unit tests; frames at a 200px viewport; the samemin(100%, ...)floor as the capped path). - Icon given its glyph as
namerenders it, warns in development and keepsnameoff the DOM: verified (Icon tests). - With no icon set,
experimental iconand--listname the discover search only where it lists a pack the project could add; the JSON shape is unchanged: verified (CLI tests). - A private package's
icon new-setreceipt leaves out the publishing steps and ends with theusestep; the guide shows a set made inside an app: verified (CLI tests). - Checkbox and radio marks are a share of their box: the shipped boxes draw the same pixels, and a 13px box draws a 7.6px check and a 5px dot: verified (source-build test; frames with 13px boxes).
- A neutral Badge in a primary or destructive Button meets 4.5:1 in light and dark mode: verified (contrast test across the official themes; frames with the default tokens).
astryx component Flexnames Stack first: verified (the command suggests Layout first before this change and Stack first after it).astryx templateresolves its component line in one pass with unchanged answers: verified (lookup test). The 0.3 to 0.7 s figure was not measured again.- A two-lane Toolbar wraps its end lane when the lanes do not fit, a Toolbar that fits looks the same, and the kanban board header now fits a phone: verified (frames at 300px and 1024px; the kanban header is a two-lane Toolbar).
Files:
- #12680:
template-components-one-pass.md,_adapter.mjs,copy.mjs,show.mjs,template.components-lookup.test.mjs,component-discovery.mjs,template-adapter.mjs: clear - #12180:
calendar-weekday-header-grows.md,Calendar.spec.md,CalendarTextSize.interaction.browser.spec.ts,styles.ts: clear - #12159:
icon-set-in-your-app.md,spec.md,_authoring.mjs,icon-sets.doc.mjs,icon-authoring.test.mjs,icon-sets-guide.test.mjs: clear - #12383:
grid-minwidth-shrinks-narrow.md,Grid.spec.md,responsive.doc.mjs,Grid.doc.mjs,Grid.test.tsx,Grid.tsx,GridNarrowContainer.a11y.chromium.spec.ts: clear - #12374:
icon-name-alias.md,Icon.spec.md,Icon.doc.mjs,Icon.test.tsx,Icon.tsx: clear - #12453:
Chart.spec.md,CHARTV2_VERIFICATION_CHECKLIST.md,Chart.doc.mjs,area.tsx,band.tsx,line.tsx,marks.test.tsx: clear - #12296:
neutral-badge-on-solid-button.md,Badge.spec.md,Button.spec.md,Badge.tsx,Button.test.tsx,Button.tsx,derivedVarRegistry.test.ts,check-status-text-contrast.test.mjs: clear - #12395:
codeblock-missing-code-error.md,CodeBlock.missingCode.test.tsx,CodeBlock.tsx: clear - #12260:
stack-card-flex-synonym.md,_cards.json: clear - #12391:
toolbar-two-lane-wrap.md,Toolbar.stories.tsx,Toolbar.spec.md,Toolbar.tsx,ToolbarTwoLaneWrap.a11y.chromium.spec.ts: clear - #12427:
CheckboxIndicator.tsx,RadioIndicator.tsx: a comment-style note that does not block;indicator-marks-share-of-box.md,CheckboxIndicator.spec.md,Indicator.spec.md,MarksFitTheBox.interaction.browser.spec.ts,marks.share-of-box.source-build.test.mjs: clear - #12725:
icon-no-set-finds-packs.md,discover.mjs,_adapter.mjs,list.mjs,search.mjs,discover.icon-packs.test.mjs,icon.mjs,icon-set-next.mjs: clear
| // The dot keeps its share of the circle, so a theme that sizes the circle | ||
| // (`radio-indicator` width and height) gets a dot that stays centered inside | ||
| // it. A percentage reads the circle's content box, so the border is added back | ||
| // first: at the shipped 20px and 24px circles the dot stays exactly 8px and | ||
| // 10px, whatever `--border-width` a theme sets. Where the browser has | ||
| // `round()`, the share is rounded to whole pixels: Chromium draws a dot of a |
There was a problem hiding this comment.
Optional (comment style): the third sentence here runs to about 38 words, longer than the comment style guide allows. A shorter version that keeps the reason:
// The dot is a share of the circle. A percentage reads the content box,
// so add the border back. Chromium draws a fractional dot as a rounded
// square, so round it to whole pixels where `round()` exists.| // The marks keep their share of the box, so a theme that sizes the box | ||
| // (`checkbox-indicator` width and height) gets a mark that fits it. A | ||
| // percentage reads the box's content box, so the border is added back first: | ||
| // at the shipped 20px and 24px boxes the marks stay exactly 12px and 14px, | ||
| // whatever `--border-width` a theme sets. |
There was a problem hiding this comment.
Optional (comment style): the second sentence runs to about 33 words. A shorter version:
// The marks are a share of the box, so a box a theme resizes keeps them
// inside it. A percentage reads the content box, so add the border back.
Land batch 4
Combines 12 reviewed pull requests on top of main so they merge as one batch: #12680, #12180, #12159, #12383, #12374, #12453, #12296, #12395, #12260, #12391, #12427, #12725. Each member is merged unchanged, in this order, with a no-fast-forward merge. Each member carries its own description and test plan.
Scope
Components: Badge, Button, Calendar, CodeBlock, Grid, Icon, CheckboxIndicator, RadioIndicator, Toolbar, Chart, CLI icon, CLI template, CLI search, CLI discover, CLI responsive guide
When this merges, each pull request above is closed with a note that names this one.