fix: restore selected calendar day contrast
ci / gitleaks (push) Successful in 7s
ci / docker (push) Successful in 6m36s

This commit is contained in:
2026-09-20 17:35:44 +08:00
parent 7140102aeb
commit bb59dc9346
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -217,6 +217,11 @@ test('calendar week focus keeps seven usable day controls without page overflow'
}))
expect(metrics.documentOverflow).toBe(0)
expect(metrics.buttons.every(button => button.width >= 44 && button.height >= 44)).toBeTruthy()
const selectedColors = await strip.locator('.calendar-week-day.is-selected').evaluate(element => {
const style = getComputedStyle(element)
return { background: style.backgroundColor, color: style.color }
})
expect(selectedColors).toEqual({ background: 'rgb(241, 90, 41)', color: 'rgb(255, 255, 255)' })
if ((await page.viewportSize())!.width <= 390) expect(metrics.stripOverflow).toBeTruthy()
})
File diff suppressed because one or more lines are too long