Repository navigation
fix(core): dark secondary text meets 4.5:1 on the neutral fill over the page and cards - #12283
josephfarina wants to merge 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.
Waiting on an owner decision, plus one fix. Lightening Core's default dark --color-text-secondary brings the unselected SegmentedControl label and AvatarGroup's "+N" count to 4.5:1, and the measurements, the red-first test and the unchanged light, forced-colors and theme renders check out. Approval waits on an owner deciding this global default: no current record sets it or prefers it to a lift scoped to the segmented-control-item and avatar-group-overflow targets (as the Neutral theme does), and it makes dark secondary text differ from secondary icons, which stay #AAAFB5. An engineering owner (or a design owner, for this theme default) records the decision by commenting /approve-spec <full head SHA> on this pull request; the author is an engineering owner and may do so.
Required fix:
- The title says dark secondary text "meets 4.5:1 on a neutral fill", but the same fill inside a popover stays at 4.03:1 and the new test covers only the surface, card and body, so retitle it to where it holds, for example "fix(core): dark secondary text meets 4.5:1 on the neutral fill over the page and cards".
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: the title's "meets 4.5:1 on a neutral fill": false, the fill inside a popover stays at 4.03:1.
- Claim: the unselected SegmentedControl label on the surface or a Card measured 4.27:1 before: verified by computation and by the new test failing on the base.
- Claim: AvatarGroup's "+N" count is the same pair: verified in Chromium (same fill over the surface in the page and in a Card).
- Claim: the new value measures 4.57:1: verified by computation; the new test passes on the head.
- Claim: light mode is unchanged at 5.42:1: verified (identical frames, same computed ratio).
- Claim: themes that set their own secondary text are unchanged and their guard still passes: verified (all seven set it; guard passes; Neutral frame identical).
- Claim: plain secondary text on the dark surface goes from 7.44:1 to 7.96:1: verified.
- Claim: the popover track goes from 3.77:1 to 4.04:1: verified within rounding (4.03:1).
- Claim: the same numbers hold in a Vite app and in a single-file render: not reproduced here; consistent with the token values.
- Claim: the Neutral theme already made the same lift for its track: verified, scoped to its
segmented-control-itemtarget. - Claim: the new test fails on the old value and passes on the new one: verified.
- Claim: the token, contrast, SegmentedControl and AvatarGroup suites and the theme guard pass: verified.
- Claim: token docs are regenerated, and the reset fallback and the README example follow: verified (the generator check passes).
- Changeset: secondary text on a neutral fill now meets 4.5:1 on the default surface and on a Card: verified.
- Changeset: the default dark value is now
#B0B5BB, was#AAAFB5, as a patch for core and cli: verified; the changeset check passes. - File
.changeset/dark-secondary-text-on-neutral-fill.md: clear. - File
internal/eslint-plugin-astryx/README.md: clear. - File
packages/cli/assets/docs/tree/tokens-color.doc.mjs: clear (matches the generator). - File
packages/core/src/reset.css: clear. - File
packages/core/src/theme/contrast.test.ts: clear. - File
packages/core/src/theme/tokens.stylex.ts: the new default awaits an owner decision.
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| Markdown | 204.4 kB (+13 B) · 22.0 kB CSS (+9 B) | — | — · — · — |
| Lightbox | 147.4 kB (+11 B) · 12.0 kB CSS (+8 B) | — | — · — · — |
| Toast | 105.0 kB (+9 B) · 11.1 kB CSS (+9 B) | — | — · — · — |
204 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| Overlay | 23.5 kB (+8 B) · 4.0 kB CSS (+7 B) | — | — · — · — |
| lab/Comments | 371.9 kB (+12 B) · 2.5 kB CSS (0) | — | — · — · — |
| ButtonGroup | 44.1 kB (0) · 3.7 kB CSS (+11 B) | — | — · — · — |
| MobileNavToggle | 66.3 kB (+2 B) · 10.8 kB CSS (+9 B) | — | — · — · — |
| Timer | 15.0 kB (+2 B) · 6.1 kB CSS (+9 B) | — | — · — · — |
| CommandPaletteInput | 33.1 kB (+2 B) · 7.6 kB CSS (+8 B) | — | — · — · — |
| Pagination | 125.1 kB (0) · 19.1 kB CSS (+10 B) | — | — · — · — |
| AlertDialog | 129.7 kB (0) · 15.5 kB CSS (+9 B) | — | — · — · — |
| Breadcrumbs | 16.5 kB (0) · 3.4 kB CSS (+9 B) | — | — · — · — |
| Button | 65.9 kB (0) · 10.8 kB CSS (+9 B) | — | — · — · — |
| ChatComposerInput | 83.1 kB (0) · 12.1 kB CSS (+9 B) | — | — · — · — |
| ChatComposerTokenElement | 83.1 kB (0) · 12.1 kB CSS (+9 B) | — | — · — · — |
| ChatDictationButton | 66.5 kB (+1 B) · 10.9 kB CSS (+8 B) | — | — · — · — |
| ComplexSelector | 78.5 kB (0) · 12.7 kB CSS (+9 B) | — | — · — · — |
| DateInput | 201.0 kB (0) · 18.0 kB CSS (+9 B) | — | — · — · — |
| DateRangeInput | 100.2 kB (0) · 13.3 kB CSS (+9 B) | — | — · — · — |
| DrawerHeader | 69.0 kB (0) · 13.8 kB CSS (+9 B) | — | — · — · — |
| DropdownMenu | 108.3 kB (0) · 18.9 kB CSS (+9 B) | — | — · — · — |
| FileInput | 75.0 kB (0) · 11.7 kB CSS (+9 B) | — | — · — · — |
| Heading | 13.5 kB (+1 B) · 5.5 kB CSS (+8 B) | — | — · — · — |
| InputGroup | 61.2 kB (0) · 7.9 kB CSS (+9 B) | — | — · — · — |
| MoreMenu | 108.5 kB (0) · 18.9 kB CSS (+9 B) | — | — · — · — |
| Popover | 99.6 kB (0) · 15.2 kB CSS (+9 B) | — | — · — · — |
| PowerSearch | 308.0 kB (0) · 25.6 kB CSS (+9 B) | — | — · — · — |
| ProgressBar | 12.0 kB (0) · 6.4 kB CSS (+9 B) | — | — · — · — |
| ScrollableArea | 11.5 kB (0) · 4.3 kB CSS (+9 B) | — | — · — · — |
| SegmentedControl | 102.3 kB (0) · 7.0 kB CSS (+9 B) | — | — · — · — |
| SelectorOption | 24.1 kB (0) · 6.7 kB CSS (+9 B) | — | — · — · — |
| SideNavSection | 7.1 kB (0) · 3.7 kB CSS (+9 B) | — | — · — · — |
| Spinner | 25.9 kB (+1 B) · 6.3 kB CSS (+8 B) | — | — · — · — |
| TableCell | 104.0 kB (0) · 19.3 kB CSS (+9 B) | — | — · — · — |
| TableHeaderCell | 103.7 kB (0) · 19.0 kB CSS (+9 B) | — | — · — · — |
| TableSelectionToolbar | 76.3 kB (0) · 14.1 kB CSS (+9 B) | — | — · — · — |
| TabList | 47.5 kB (0) · 6.5 kB CSS (+9 B) | — | — · — · — |
| Text | 12.9 kB (+1 B) · 5.5 kB CSS (+8 B) | — | — · — · — |
| TextInput | 73.6 kB (+1 B) · 12.0 kB CSS (+8 B) | — | — · — · — |
| Typeahead | 88.9 kB (0) · 13.5 kB CSS (+9 B) | — | — · — · — |
| lab/DialogHeroHeader | 89.9 kB (+9 B) · 372 B CSS (0) | — | — · — · — |
| lab/ListInput | 94.9 kB (+9 B) · 922 B CSS (0) | — | — · — · — |
| AppShell | 98.5 kB (0) · 14.4 kB CSS (+8 B) | — | — · — · — |
| AvatarGroup | 48.9 kB (0) · 5.8 kB CSS (+8 B) | — | — · — · — |
| Badge | 4.4 kB (0) · 4.0 kB CSS (+8 B) | — | — · — · — |
| BaseTypeahead | 79.3 kB (0) · 11.7 kB CSS (+8 B) | — | — · — · — |
| BottomSheet | 73.1 kB (0) · 7.8 kB CSS (+8 B) | — | — · — · — |
| BreadcrumbItem | 97.7 kB (0) · 13.3 kB CSS (+8 B) | — | — · — · — |
| Calendar | 77.0 kB (0) · 11.4 kB CSS (+8 B) | — | — · — · — |
| Card | 6.9 kB (0) · 6.7 kB CSS (+8 B) | — | — · — · — |
| Carousel | 75.7 kB (0) · 11.8 kB CSS (+8 B) | — | — · — · — |
| Center | 4.4 kB (0) · 4.6 kB CSS (+8 B) | — | — · — · — |
| ChatComposer | 85.5 kB (0) · 12.9 kB CSS (+8 B) | — | — · — · — |
| ChatComposerDrawer | 18.2 kB (0) · 4.7 kB CSS (+8 B) | — | — · — · — |
| ChatLayout | 89.2 kB (0) · 11.4 kB CSS (+8 B) | — | — · — · — |
| ChatMessageMetadata | 20.5 kB (0) · 4.1 kB CSS (+8 B) | — | — · — · — |
| ChatSendButton | 66.3 kB (0) · 10.8 kB CSS (+8 B) | — | — · — · — |
| ChatTokenizedText | 7.6 kB (0) · 4.1 kB CSS (+8 B) | — | — · — · — |
| CheckboxInput | 69.2 kB (0) · 10.2 kB CSS (+8 B) | — | — · — · — |
| CheckboxList | 73.3 kB (0) · 7.8 kB CSS (+8 B) | — | — · — · — |
| CheckboxListItem | 80.1 kB (0) · 12.1 kB CSS (+8 B) | — | — · — · — |
| ClickableCard | 18.6 kB (0) · 7.4 kB CSS (+8 B) | — | — · — · — |
| Collapsible | 29.0 kB (0) · 4.5 kB CSS (+8 B) | — | — · — · — |
| CommandPalette | 78.1 kB (0) · 12.8 kB CSS (+8 B) | — | — · — · — |
| ContextMenu | 102.8 kB (0) · 18.8 kB CSS (+8 B) | — | — · — · — |
| DateTimeInput | 224.4 kB (0) · 19.8 kB CSS (+8 B) | — | — · — · — |
| DialogHeader | 68.9 kB (0) · 12.4 kB CSS (+8 B) | — | — · — · — |
| Drawer | 54.3 kB (0) · 8.5 kB CSS (+8 B) | — | — · — · — |
| Field | 59.6 kB (0) · 7.3 kB CSS (+8 B) | — | — · — · — |
| FieldLabel | 55.6 kB (0) · 5.8 kB CSS (+8 B) | — | — · — · — |
| FieldStatus | 10.1 kB (0) · 3.6 kB CSS (+8 B) | — | — · — · — |
| IconButton | 66.0 kB (−1 B) · 10.8 kB CSS (+9 B) | — | — · — · — |
| InputGroupText | 6.9 kB (0) · 3.9 kB CSS (+8 B) | — | — · — · — |
| LayoutPanel | 22.1 kB (0) · 5.1 kB CSS (+8 B) | — | — · — · — |
| Link | 56.6 kB (0) · 7.1 kB CSS (+8 B) | — | — · — · — |
| ListItem | 79.3 kB (0) · 12.1 kB CSS (+8 B) | — | — · — · — |
| MetadataListItem | 7.1 kB (0) · 3.5 kB CSS (+8 B) | — | — · — · — |
| MobileNav | 77.2 kB (−1 B) · 11.4 kB CSS (+9 B) | — | — · — · — |
| MultiSelector | 102.6 kB (0) · 17.8 kB CSS (+8 B) | — | — · — · — |
| NavIcon | 3.7 kB (+1 B) · 3.4 kB CSS (+7 B) | — | — · — · — |
| NumberInput | 78.5 kB (0) · 12.2 kB CSS (+8 B) | — | — · — · — |
| Outline | 25.3 kB (0) · 4.1 kB CSS (+8 B) | — | — · — · — |
| RadioList | 61.0 kB (0) · 7.4 kB CSS (+8 B) | — | — · — · — |
| RadioListItem | 76.3 kB (0) · 10.7 kB CSS (+8 B) | — | — · — · — |
| ResizeHandle | 22.3 kB (0) · 4.3 kB CSS (+8 B) | — | — · — · — |
| SelectableCard | 18.8 kB (0) · 7.6 kB CSS (+8 B) | — | — · — · — |
| Selector | 114.0 kB (0) · 18.7 kB CSS (+8 B) | — | — · — · — |
| SideNav | 122.2 kB (0) · 12.2 kB CSS (+8 B) | — | — · — · — |
| SideNavCollapseButton | 66.8 kB (0) · 10.9 kB CSS (+8 B) | — | — · — · — |
| SideNavHeading | 83.5 kB (0) · 12.1 kB CSS (+8 B) | — | — · — · — |
| SideNavItem | 77.9 kB (0) · 12.0 kB CSS (+8 B) | — | — · — · — |
| Slider | 114.7 kB (0) · 8.9 kB CSS (+8 B) | — | — · — · — |
| Step | 31.6 kB (0) · 5.6 kB CSS (+8 B) | — | — · — · — |
| Stepper | 67.6 kB (0) · 10.9 kB CSS (+8 B) | — | — · — · — |
| Switch | 109.2 kB (0) · 10.0 kB CSS (+8 B) | — | — · — · — |
| Table | 121.0 kB (0) · 19.7 kB CSS (+8 B) | — | — · — · — |
| TabMenu | 79.8 kB (0) · 12.0 kB CSS (+8 B) | — | — · — · — |
| TextArea | 67.1 kB (0) · 9.4 kB CSS (+8 B) | — | — · — · — |
| TimeInput | 175.8 kB (0) · 17.0 kB CSS (+8 B) | — | — · — · — |
| Timestamp | 30.5 kB (0) · 11.1 kB CSS (+8 B) | — | — · — · — |
| ToggleButton | 93.1 kB (0) · 10.9 kB CSS (+8 B) | — | — · — · — |
| Token | 29.6 kB (0) · 4.9 kB CSS (+8 B) | — | — · — · — |
| Tokenizer | 105.3 kB (0) · 20.4 kB CSS (+8 B) | — | — · — · — |
| Toolbar | 47.3 kB (0) · 8.2 kB CSS (+8 B) | — | — · — · — |
| Tooltip | 32.2 kB (0) · 4.5 kB CSS (+8 B) | — | — · — · — |
| TopNavHeading | 83.0 kB (0) · 12.0 kB CSS (+8 B) | — | — · — · — |
| TopNavMegaMenu | 77.2 kB (0) · 12.7 kB CSS (+8 B) | — | — · — · — |
| TopNavMegaMenuItem | 15.1 kB (0) · 4.2 kB CSS (+8 B) | — | — · — · — |
| TopNavMenu | 82.6 kB (0) · 12.1 kB CSS (+8 B) | — | — · — · — |
| TreeList | 46.2 kB (0) · 6.0 kB CSS (+8 B) | — | — · — · — |
| lab/CommentThread | 365.0 kB (+8 B) · 2.4 kB CSS (0) | — | — · — · — |
| AspectRatio | 3.9 kB (0) · 3.6 kB CSS (+7 B) | — | — · — · — |
| Avatar | 46.1 kB (0) · 5.7 kB CSS (+7 B) | — | — · — · — |
| AvatarGroupOverflow | 52.1 kB (0) · 5.8 kB CSS (+7 B) | — | — · — · — |
| AvatarStatusDot | 7.6 kB (0) · 3.5 kB CSS (+7 B) | — | — · — · — |
| Blockquote | 3.7 kB (0) · 3.5 kB CSS (+7 B) | — | — · — · — |
| BottomSheetSwitcher | 18.7 kB (0) · 3.4 kB CSS (+7 B) | — | — · — · — |
| ChatMessage | 17.2 kB (0) · 3.7 kB CSS (+7 B) | — | — · — · — |
| ChatMessageBubble | 7.6 kB (0) · 3.7 kB CSS (+7 B) | — | — · — · — |
| ChatSystemMessage | 7.1 kB (0) · 3.8 kB CSS (+7 B) | — | — · — · — |
| Citation | 20.8 kB (0) · 4.4 kB CSS (+7 B) | — | — · — · — |
| Code | 3.7 kB (0) · 3.5 kB CSS (+7 B) | — | — · — · — |
| CodeBlock | 81.4 kB (−1 B) · 12.2 kB CSS (+8 B) | — | — · — · — |
| CollapsibleGroup | 7.0 kB (0) · 3.3 kB CSS (+7 B) | — | — · — · — |
| CommandPaletteEmpty | 6.5 kB (0) · 3.5 kB CSS (+7 B) | — | — · — · — |
| CommandPaletteFooter | 17.5 kB (0) · 3.7 kB CSS (+7 B) | — | — · — · — |
| CommandPaletteGroup | 3.7 kB (0) · 3.5 kB CSS (+7 B) | — | — · — · — |
| CommandPaletteItem | 13.4 kB (0) · 3.6 kB CSS (+7 B) | — | — · — · — |
| CommandPaletteList | 16.4 kB (0) · 3.4 kB CSS (+7 B) | — | — · — · — |
| DropdownMenuGroup | 6.4 kB (0) · 3.4 kB CSS (+7 B) | — | — · — · — |
| DropdownMenuItem | 27.8 kB (−3 B) · 6.9 kB CSS (+10 B) | — | — · — · — |
| DropdownMenuRadioGroup | 6.6 kB (0) · 3.3 kB CSS (+7 B) | — | — · — · — |
| FormLayout | 6.9 kB (0) · 3.5 kB CSS (+7 B) | — | — · — · — |
| Grid | 4.6 kB (0) · 3.8 kB CSS (+7 B) | — | — · — · — |
| GridSpan | 3.6 kB (0) · 3.4 kB CSS (+7 B) | — | — · — · — |
| HoverCard | 30.4 kB (0) · 4.5 kB CSS (+7 B) | — | — · — · — |
| InfoTip | 50.6 kB (0) · 5.4 kB CSS (+7 B) | — | — · — · — |
| Item | 20.5 kB (−1 B) · 6.2 kB CSS (+8 B) | — | — · — · — |
| Kbd | 17.2 kB (0) · 3.6 kB CSS (+7 B) | — | — · — · — |
| MetadataList | 17.3 kB (0) · 3.8 kB CSS (+7 B) | — | — · — · — |
| NavHeadingMenu | 18.5 kB (0) · 3.5 kB CSS (+7 B) | — | — · — · — |
| OverflowList | 11.0 kB (0) · 3.6 kB CSS (+7 B) | — | — · — · — |
| Section | 7.8 kB (−1 B) · 6.4 kB CSS (+8 B) | — | — · — · — |
| SegmentedControlItem | 18.8 kB (0) · 4.3 kB CSS (+7 B) | — | — · — · — |
| Skeleton | 4.0 kB (0) · 3.8 kB CSS (+7 B) | — | — · — · — |
| StatusDot | 33.9 kB (0) · 5.4 kB CSS (+7 B) | — | — · — · — |
| Tab | 14.9 kB (0) · 4.2 kB CSS (+7 B) | — | — · — · — |
| TableBody | 3.5 kB (0) · 3.3 kB CSS (+7 B) | — | — · — · — |
| TableFooter | 3.5 kB (0) · 3.3 kB CSS (+7 B) | — | — · — · — |
| TableHeader | 3.5 kB (0) · 3.3 kB CSS (+7 B) | — | — · — · — |
| TableRow | 7.1 kB (0) · 4.0 kB CSS (+7 B) | — | — · — · — |
| Thumbnail | 70.4 kB (−1 B) · 12.4 kB CSS (+8 B) | — | — · — · — |
| ToggleButtonGroup | 41.4 kB (0) · 3.7 kB CSS (+7 B) | — | — · — · — |
| TopNav | 79.0 kB (−1 B) · 11.8 kB CSS (+8 B) | — | — · — · — |
| TopNavItem | 14.5 kB (0) · 4.0 kB CSS (+7 B) | — | — · — · — |
| TopNavMegaMenuFeaturedCard | 8.4 kB (0) · 3.6 kB CSS (+7 B) | — | — · — · — |
| TypeaheadItem | 6.6 kB (0) · 3.6 kB CSS (+7 B) | — | — · — · — |
| ChatLayoutScrollButton | 66.5 kB (−2 B) · 11.0 kB CSS (+8 B) | — | — · — · — |
| ChatMessageList | 29.3 kB (−2 B) · 7.1 kB CSS (+8 B) | — | — · — · — |
| ChatToolCalls | 33.6 kB (−2 B) · 8.5 kB CSS (+8 B) | — | — · — · — |
| Dialog | 25.6 kB (−2 B) · 7.0 kB CSS (+8 B) | — | — · — · — |
| DropdownMenuCheckboxItem | 28.6 kB (−2 B) · 7.3 kB CSS (+8 B) | — | — · — · — |
| DropdownMenuRadioItem | 28.7 kB (−2 B) · 7.3 kB CSS (+8 B) | — | — · — · — |
| DropdownMenuSubMenu | 78.7 kB (−2 B) · 10.5 kB CSS (+8 B) | — | — · — · — |
| charts/Chart | 239.7 kB (+5 B) · 516 B CSS (0) | — | — · — · — |
| Banner | 67.9 kB (−4 B) · 11.3 kB CSS (+9 B) | — | — · — · — |
| ContextMenuItem | 35.5 kB (−6 B) · 7.1 kB CSS (+9 B) | — | — · — · — |
| lab/EmojiPicker | 93.4 kB (+1 B) · 751 B CSS (0) | — | — · — · — |
| lab/Stat | 4.3 kB (+1 B) · 646 B CSS (0) | — | — · — · — |
| charts/ChartAxis | 7.0 kB (0) · 112 B CSS (0) | — | — · — · — |
| charts/ChartLegend | 47.5 kB (0) · 224 B CSS (0) | — | — · — · — |
| charts/ChartTooltip | 216.4 kB (0) · 451 B CSS (0) | — | — · — · — |
| lab/ChartDotGL | 7.6 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/ChartDotGLInteractive | 8.6 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/ChartHeatmapGL | 8.8 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/ChartStreamGL | 7.7 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/ChatEmojiPicker | 114.7 kB (0) · 773 B CSS (0) | — | — · — · — |
| lab/ChatReactionBar | 115.8 kB (0) · 1.1 kB CSS (0) | — | — · — · — |
| lab/ChatReasoning | 7.2 kB (0) · 967 B CSS (0) | — | — · — · — |
| lab/ChatTypingIndicator | 26.3 kB (0) · 612 B CSS (0) | — | — · — · — |
| lab/ChatUnreadDivider | 3.7 kB (0) · 348 B CSS (0) | — | — · — · — |
| lab/ChatVirtualizer | 57.2 kB (0) · 223 B CSS (0) | — | — · — · — |
| lab/CircleCheckIndicator | 4.6 kB (0) · 1.0 kB CSS (0) | — | — · — · — |
| lab/CircularProgress | 9.1 kB (0) · 880 B CSS (0) | — | — · — · — |
| lab/CodeEditor | 14.6 kB (0) · 743 B CSS (0) | — | — · — · — |
| lab/CommentComposer | 175.0 kB (0) · 1.9 kB CSS (0) | — | — · — · — |
| lab/CommentPin | 60.5 kB (0) · 1.2 kB CSS (0) | — | — · — · — |
| lab/LogStream | 8.2 kB (0) · 1.6 kB CSS (0) | — | — · — · — |
| lab/NavigationScreen | 85.0 kB (0) · 1.5 kB CSS (0) | — | — · — · — |
| lab/NavigationStack | 85.0 kB (0) · 1.5 kB CSS (0) | — | — · — · — |
| lab/PageControl | 78.2 kB (0) · 709 B CSS (0) | — | — · — · — |
| lab/Schedule | 115.5 kB (0) · 3.9 kB CSS (0) | — | — · — · — |
| lab/SelectableCardGroup | 69.0 kB (0) · 162 B CSS (0) | — | — · — · — |
| lab/SVGIcon | 7.9 kB (0) · 765 B CSS (0) | — | — · — · — |
| lab/TabBar | 83.6 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
| lab/TabBarItem | 3.9 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
| lab/TabBarMoreList | 102.1 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
| lab/ThreeDScatterGL | 7.9 kB (0) · 20 B CSS (0) | — | — · — · — |
| lab/TourStep | 94.3 kB (0) · 691 B CSS (0) | — | — · — · — |
| lab/TransferList | 113.2 kB (0) · 1.2 kB CSS (0) | — | — · — · — |
| lab/TransferListSelector | 122.1 kB (0) · 1.4 kB CSS (0) | — | — · — · — |
| lab/WeightedSVGIcon | 5.1 kB (0) · 1.1 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditor | 306.8 kB (0) · 2.6 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditorToolbar | 300.8 kB (0) · 454 B CSS (0) | — | — · — · — |
| richtext/RichTextView | 283.5 kB (0) · 2.3 kB CSS (0) | — | — · — · — |
| lab/DiffViewer | 94.0 kB (−1 B) · 2.1 kB CSS (0) | — | — · — · — |
| lab/LineClamp | 15.4 kB (−1 B) · 168 B CSS (0) | — | — · — · — |
Package size:
- @astryxdesign/cli 5.30 MB packed (+3 B); no new dependencies
- @astryxdesign/core 7.63 MB packed (+209 B); no new dependencies
API changes: core +0 · ~3 · −0
3 API changes (advisory)
| Package | Where | Signature | Usage | |
|---|---|---|---|---|
| ~ | core |
. · Values · const colorDefaults |
--color-text-secondary: 'light-dark(#4E606F, #AAAFB5)' → --color-text-secondary: 'light-dark(#4E606F, #B0B5BB)' |
import {colorDefaults} from '@astryxdesign/core' |
| ~ | core |
. · Values · const colorVars |
const colorVars: stylex.VarGroup<Readonly<{ readonly '--color-accent': "light-dark(#0064E0, #0171E3)"; readonly '--color-accent-muted': "light-dark(#0082FB33, #0082FB3F)"; reado … #9de1262f → const colorVars: stylex.VarGroup<Readonly<{ readonly '--color-accent': "light-dark(#0064E0, #0171E3)"; readonly '--color-accent-muted': "light-dark(#0082FB33, #0082FB3F)"; reado … #96128b51 |
import {colorVars} from '@astryxdesign/core' |
| ~ | core |
./Text/text.stylex · Values · const colorStyles |
const colorStyles: Readonly<{ readonly primary: Readonly<{ readonly color: stylex.StyleXClassNameFor<"color", "light-dark(#0A1317, #DFE2E5)"> }>; readonly secondary: Readonly<{ re … #ee16b085 → const colorStyles: Readonly<{ readonly primary: Readonly<{ readonly color: stylex.StyleXClassNameFor<"color", "light-dark(#0A1317, #DFE2E5)"> }>; readonly secondary: Readonly<{ re … #72038bf3 |
import {colorStyles} from '@astryxdesign/core/Text/text.stylex' |
Wide change (shared styles: packages/core/src/theme/tokens.stylex.ts): add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.
Generated by PR Enrichment workflow | View full report
|
Owner decision (engineering owner, covering this pull request): Core's default dark secondary text color changes so it meets WCAG AA (4.5:1) on the neutral fill over the page and over cards, which is where unselected segmented-control labels and the avatar group's overflow count sit. It is a global default rather than a lift scoped to those two targets, because the same pair fails wherever secondary text sits on that fill. The new value keeps today's hue and is the smallest change that meets 4.5:1 on every default dark tint, and a per-tint contrast test covers the dark tints. Secondary icons keep their current color. Light mode is unchanged by this pull request. |
|
/approve-spec d205cda |
|
I'll run a full review to re-check this with your note. |
|
/approve-spec a0256f8 |
There was a problem hiding this comment.
Changes requested: one stale test. Lightening Core's default dark --color-text-secondary brings the unselected SegmentedControl label and AvatarGroup's "+N" count to 4.5:1 on the page and on cards, and the owner decision recorded on this pull request settles the global default. One fix remains:
- Miss:
packages/core/src/reset.a11y.chromium.spec.ts:30still expects the old dark placeholderrgb(170, 175, 181), so its test "input and textarea placeholders take the reset color in both schemes" fails in Chromium on this head (the placeholder now computes torgb(176, 181, 187)); setdark: 'rgb(176, 181, 187)'.
The title fix from the last review is in, and CI has not run on this head yet.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
- Claim: the title's 4.5:1 on the neutral fill over the page and cards: verified, the new test passes over the surface, the card and the body.
- Claim: an unselected SegmentedControl label on the surface or a Card measured 4.27:1 in dark mode: verified by computation and by the new test failing on the base.
- Claim: AvatarGroup's "+N" count is the same pair: verified, it paints the neutral fill over the surface colour with secondary text.
- Claim: both sit on the translucent neutral fill, which lifts the surface: verified in Chromium (track rgba(223, 226, 229, 0.2)).
- Claim: the dark default moves one small step with the same hue, #AAAFB5 to #B0B5BB: verified (six per channel).
- Claim: light mode is unchanged: verified, identical light frames.
- Claim: themes that set their own secondary text are unchanged: verified, no theme's built surface changes and the Neutral frame is identical.
- Claim: WCAG 1.4.3 sets the floor and the Neutral theme already lifted its own track: verified, scoped to its segmented-control-item target.
- Claim: 4.27:1 to 4.57:1 dark and 5.42:1 light on the composited track: verified by computation.
- Claim: the same numbers hold in a Vite app and a single-file render: consistent, the value comes from the same default; not run separately.
- Claim: plain secondary text on the dark surface goes from 7.44:1 to 7.96:1: verified.
- Claim: first-party themes are not affected and their guard passes: verified, the guard tests pass.
- Claim: the change reaches SegmentedControlItem, AvatarGroupOverflow and all dark secondary text: verified.
- Claim: the new test fails on the old value over the surface and card and passes on the new one: verified.
- Claim: the token, contrast, SegmentedControl and AvatarGroup suites and the theme guard pass: verified.
- Claim: token docs are regenerated and the reset fallback and the lint README example follow: verified (generator check passes); the reset's own browser contract does not follow, see the finding.
- Claim: inside a popover the track goes from 3.77:1 to 4.04:1: verified within rounding (4.03:1).
- Changeset: secondary text on a neutral fill now meets 4.5:1 on the default surface and on a Card: verified.
- Changeset: the default dark value is now #B0B5BB, was #AAAFB5, as a patch for core and cli: verified.
- File
.changeset/dark-secondary-text-on-neutral-fill.md: clear. - File
internal/eslint-plugin-astryx/README.md: clear. - File
packages/cli/assets/docs/tree/tokens-color.doc.mjs: clear (matches the generator). - File
packages/core/src/reset.css: the new fallback leavesreset.a11y.chromium.spec.ts:30stale (finding). - File
packages/core/src/theme/contrast.test.ts: clear. - File
packages/core/src/theme/tokens.stylex.ts: clear, the new default is owner-decided.
|
/approve-spec 165d3f7 |
There was a problem hiding this comment.
Approved pending CI. Lightening Core's default dark --color-text-secondary (#AAAFB5 to #B0B5BB) brings the unselected SegmentedControl label and AvatarGroup's "+N" count to 4.5:1 on the page and on cards, the owner decision on this pull request settles the global default, and the reset's placeholder test now follows the new value.
CI is still running on this head, and its Node test legs fail on a test-time budget that main already exceeds (the same plan fails on main without this change); those checks need to pass before merge.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
- Claim: the title's 4.5:1 on the neutral fill over the page and cards: verified, the new test passes over the surface, the card and the body.
- Claim: an unselected SegmentedControl label on the surface or a Card measured 4.27:1 in dark mode: verified by computation and by the new test failing on the base.
- Claim: AvatarGroup's "+N" count is the same pair: verified, it paints the neutral fill over the surface colour with secondary text.
- Claim: both sit on the translucent neutral fill, which lifts the surface: verified in Chromium (track
rgba(223, 226, 229, 0.2)). - Claim: the dark default moves one small step with the same hue,
#AAAFB5to#B0B5BB: verified (six per channel). - Claim: light mode is unchanged: verified, identical light frames.
- Claim: themes that set their own secondary text are unchanged: verified, no built theme stylesheet contains either value and the Neutral frame is identical.
- Claim: WCAG 1.4.3 sets the floor and the Neutral theme already made the same lift for its own track: verified, scoped to its segmented-control-item target.
- Claim: 4.27:1 to 4.57:1 dark and 5.42:1 light on the composited track: verified by computation.
- Claim: the same numbers hold in a Vite app and a single-file render: verified in Chromium through Storybook with the same built default; those two runs were not repeated.
- Claim: plain secondary text on the dark surface goes from 7.44:1 to 7.96:1: verified.
- Claim: first-party themes are not affected and their guard passes: verified, the guard tests pass.
- Claim: the change reaches SegmentedControlItem, AvatarGroupOverflow and all dark secondary text: verified.
- Claim: the new test fails on the old value over the surface and card and passes on the new one: verified.
- Claim: the token, contrast, SegmentedControl and AvatarGroup suites and the theme guard pass: verified.
- Claim: token docs are regenerated and the reset fallback and the lint README example follow: verified (the generator check passes), and the reset's browser contract follows too.
- Claim: the changed pixels were shown running: verified, the dark frames change and the light, forced-colors, status and Neutral frames do not.
- Claim: inside a popover the track goes from 3.77:1 to 4.04:1: verified.
- Changeset: secondary text on a neutral fill now meets 4.5:1 on the default surface and on a Card: verified.
- Changeset: the default dark value is now
#B0B5BB, was#AAAFB5, as a patch for core and cli: verified. - File
.changeset/dark-secondary-text-on-neutral-fill.md: clear. - File
internal/eslint-plugin-astryx/README.md: clear. - File
packages/cli/assets/docs/tree/tokens-color.doc.mjs: clear (matches the generator). - File
packages/core/src/reset.a11y.chromium.spec.ts: clear (all six tests pass in Chromium). - File
packages/core/src/reset.css: clear. - File
packages/core/src/theme/contrast.test.ts: clear. - File
packages/core/src/theme/tokens.stylex.ts: clear, the new default is owner-decided.
…nd the Pages reset copy
There was a problem hiding this comment.
Approved pending CI. Lightening Core's default dark --color-text-secondary (#AAAFB5 to #B0B5BB) brings the unselected SegmentedControl label and AvatarGroup's "+N" count to 4.5:1 on the page and on cards. This update carries the value into the generated Swift default theme and the Pages copy of the reset stylesheet, so the Swift drift test and the Pages landing test pass again.
CI has not finished on this head yet; its required checks need to pass before merge.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
- Claim: the title's 4.5:1 on the neutral fill over the page and cards: verified, the new test passes over the surface, the card and the body.
- Claim: an unselected SegmentedControl label on the surface or a Card measured 4.27:1 in dark mode: verified by computation and by the new test failing on the base.
- Claim: AvatarGroup's "+N" count is the same pair: verified, it paints the neutral fill over the surface colour with secondary text, and Chromium computes the new colour for it.
- Claim: both sit on the translucent neutral fill, which lifts the surface: verified (track
rgba(223, 226, 229, 0.2)). - Claim: the dark default moves one small step with the same hue,
#AAAFB5to#B0B5BB: verified (six per channel). - Claim: light mode is unchanged: verified, identical light frames.
- Claim: themes that set their own secondary text are unchanged: verified, the Neutral frame is identical.
- Claim: WCAG 1.4.3 sets the floor and the Neutral theme already made the same lift for its own track: verified, scoped to its segmented-control-item target.
- Claim: 4.27:1 to 4.57:1 dark and 5.42:1 light on the composited track: verified by computation.
- Claim: the same numbers hold in a Vite app and a single-file render: not repeated in those two set-ups; Storybook in Chromium shows the same computed colour.
- Claim: plain secondary text on the dark surface goes from 7.44:1 to 7.96:1: verified.
- Claim: first-party themes are not affected and their guard passes: verified, the guard tests pass.
- Claim: the change reaches SegmentedControlItem, AvatarGroupOverflow and all dark secondary text: verified, including code-block comments and punctuation, which use the same token.
- Claim: the new test fails on the old value over the surface and card and passes on the new one: verified.
- Claim: the token, contrast, SegmentedControl and AvatarGroup suites and the theme guard pass: verified.
- Claim: token docs are regenerated and the reset fallback and the lint README example follow: verified, the generator check passes.
- Claim: the changed pixels were shown running: verified, the dark frames change and the light and Neutral frames do not.
- Claim: inside a popover the track goes from 3.77:1 to 4.04:1: verified.
- Changeset: secondary text on a neutral fill now meets 4.5:1 on the default surface and on a Card: verified.
- Changeset: the default dark value is now
#B0B5BB, was#AAAFB5, as a patch for core and cli: verified. - File
.changeset/dark-secondary-text-on-neutral-fill.md: clear. - File
.github/pages/assets/manifest.json: clear, the hash matches the new copy. - File
.github/pages/assets/reset.css: clear, identical to the package reset. - File
internal/eslint-plugin-astryx/README.md: clear. - File
packages/cli/assets/docs/tree/tokens-color.doc.mjs: clear, matches its generator. - File
packages/core/src/reset.a11y.chromium.spec.ts: clear. - File
packages/core/src/reset.css: clear. - File
packages/core/src/theme/contrast.test.ts: clear. - File
packages/core/src/theme/tokens.stylex.ts: clear, the new default is owner-decided. - File
packages/native/apple/Sources/Astryx/Theme/Generated/DefaultTheme.swift: clear, matches its generator.
- #12694 fix(cli): the Order Detail template's discount uses a minus sign held to its amount Author: @josephfarina - #12114 fix(templates): reset, reply, send and go-into icons mirror in right-to-left pages Author: @josephfarina - #12143 refactor(templates): example blocks lay out with HStack and VStack instead of flex wrappers Author: @josephfarina - #12158 fix(core): ChatComposer keeps its send action inside the composer on a narrow screen Author: @josephfarina - #12242 fix(cli): the npm commands the CLI runs for itself use npm's own noproxy setting Author: @josephfarina - #12283 fix(core): dark secondary text meets 4.5:1 on the neutral fill over the page and cards Author: @josephfarina - #12290 fix(Markdown): keep bulleted and numbered lists inside their column Author: @josephfarina - #12372 [fix] Heading: a missing level renders an h2 and warns, instead of crashing Author: @josephfarina - #12447 spec(AST-057): the swipe codemod's paths match it in any lifecycle folder Author: @josephfarina - #12475 fix(templates): on a phone the settings search moves under the title Author: @josephfarina - #12530 fix(cli): the contact-form template fits a phone; its section fills the width up to 800px Author: @josephfarina
|
Landed in #12812. |
User impact
In dark mode with Core's default tokens, an unselected SegmentedControl label on a page surface or a Card measured 4.27:1, under the 4.5:1 WCAG AA minimum for normal text. AvatarGroup's "+N" overflow count is the same pair and measured the same. Both are
--color-text-secondaryon the translucent--color-neutralfill, which lifts the surface under it. This PR lightens the default dark--color-text-secondaryone small step (#AAAFB5→#B0B5BB, same hue) so both pass. Light mode is unchanged. Themes that set their own--color-text-secondaryare unchanged.Visual authority
Before and after
Real Chromium, the same page (a course page with a "Start mode" SegmentedControl inside a Card), measured on the composited track:
#AAAFB5on#454649= 4.27:1#B0B5BBon#454649= 4.57:1#4E606Fon#E6EBEE= 5.42:1Same numbers in a Vite app and in a single-file
astryx experimental renderoutput. Plain secondary text on the dark surface goes from 7.44:1 to 7.96:1.State matrix
Light and dark; 390, 375 and 1280 px; Core defaults (no theme). First-party themes set their own secondary text and are not affected; their guard (
scripts/check-segmented-control-label-contrast.test.mjs) still passes.Scope
Components: theme tokens
colorDefaults,colorVarsandcolorStyles(Text) (affects SegmentedControlItem, AvatarGroupOverflow, and all dark secondary text by one small step)Testing
contrast.test.tscase: Core's default secondary text on the--color-neutralfill composited over the surface, the card and the body, light and dark, meets 4.5:1. It fails on the old value (4.27:1 over the surface and the card) and passes on the new one.tokens.test.ts,contrast.test.ts, SegmentedControl and AvatarGroup suites, and the theme guard pass.node scripts/generate-token-docs.mjs; the reset fallback and the lint README example follow the new value.Out of scope: inside a popover (
--color-background-popover), the track is lighter again (3.77:1 before, 4.04:1 after). That needs its own fix.