Skip to content

chore(docs): run visual regression in CI; align DatePicker text color#139

Open
wangdicoder wants to merge 1 commit into
feat/accessibility-improvementsfrom
chore/visual-regression-and-theme
Open

chore(docs): run visual regression in CI; align DatePicker text color#139
wangdicoder wants to merge 1 commit into
feat/accessibility-improvementsfrom
chore/visual-regression-and-theme

Conversation

@wangdicoder
Copy link
Copy Markdown
Owner

Stacked on top of #138. Set the base to feat/accessibility-improvements because the visual regression CI step relies on the Playwright install introduced there.

Summary

  • Adds the Visual regression tests CI step (running pnpm test:visual) after the accessibility step.
  • Switches the DatePicker weekday header and dim/disabled cell text from --ty-picker-input-color-muted / --ty-date-picker-cell-color-muted to --ty-color-text-secondary (with the previous token kept as a CSS fallback), so the date picker shares the same secondary-text token as the rest of the library.
  • Loosens visual tolerance from maxDiffPixels: 100 to maxDiffPixelRatio: 0.03 to absorb subpixel rendering jitter.
  • Refreshes recorded screenshots to match the new DatePicker color and the Button demo retitle ("Type" → "Variant", "More Types" → "Semantic Colors").

Test plan

@wangdicoder wangdicoder force-pushed the feat/accessibility-improvements branch from 768d526 to a1be4d6 Compare May 16, 2026 23:27
@wangdicoder wangdicoder force-pushed the chore/visual-regression-and-theme branch from 89827bb to 9820aec Compare May 16, 2026 23:28
@wangdicoder wangdicoder force-pushed the feat/accessibility-improvements branch from a1be4d6 to f38b557 Compare May 16, 2026 23:32
- Add `Visual regression tests` step to CI after the accessibility step
  introduced in #138.
- Loosen visual regression tolerance from `maxDiffPixels: 100` to
  `maxDiffPixelRatio: 0.03` so subpixel anti-aliasing differences across
  rendering passes don't flake the suite.
- Refresh recorded screenshots to match the DatePicker color change shipped
  in #138 and the Button demo retitle ("Type" → "Variant",
  "More Types" → "Semantic Colors").
@wangdicoder wangdicoder force-pushed the chore/visual-regression-and-theme branch from 9820aec to 7c17d02 Compare May 16, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant