Commit 9820aec
committed
chore(docs): run visual regression in CI; align DatePicker text color
- Add `Visual regression tests` step to CI, following the Playwright install
introduced for the accessibility suite.
- Switch DatePicker weekday header and dim/disabled cell text to
`--ty-color-text-secondary` (with the previous `--ty-*-color-muted` token as
fallback) so the picker uses the same secondary-text token as the rest of
the library.
- 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 new DatePicker color and the
Button demo titles ("Type" → "Variant", "More Types" → "Semantic Colors").1 parent a1be4d6 commit 9820aec
24 files changed
Lines changed: 35 additions & 16 deletions
File tree
- .changeset
- .github/workflows
- apps/docs
- tests/visual
- __screenshots__
- feedback.visual.spec.ts
- interaction.visual.spec.ts
- selectors.visual.spec.ts
- packages/react/src/date-picker/style
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments