fix: restore selected calendar day contrast
This commit is contained in:
@@ -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
Reference in New Issue
Block a user