feat: spacing tokens, actionable failure copy, unified focus ring, 44px touch targets, press feedback
This commit is contained in:
@@ -60,7 +60,7 @@ test('Today plain-list layout matches the approved responsive geometry', async (
|
||||
}
|
||||
})).toEqual({
|
||||
media720: width <= 720,
|
||||
contentWidth: width >= 1440 ? 1080 : width > 930 ? Math.min(1080, width - 324) : width === 721 ? 630 : width - 58,
|
||||
contentWidth: width >= 1440 ? 1080 : width > 930 ? Math.min(1080, width - 324) : width === 721 ? 630 : width - 56,
|
||||
environmentHeight: width >= 721 ? 55 : width === 375 ? 79 : 81,
|
||||
})
|
||||
await expect(page.locator('.today-heading')).toHaveCount(1)
|
||||
@@ -270,9 +270,9 @@ test('Today plain-list layout matches the approved responsive geometry', async (
|
||||
expect(metrics.directions.weather).toBe('column')
|
||||
expect(metrics.directions.gold).toBe('column')
|
||||
if (width <= 720) {
|
||||
expect(metrics.content.width).toBeCloseTo(width - 58, 0)
|
||||
expect(metrics.content.left).toBeCloseTo(29, 0)
|
||||
expect(metrics.styles.mainPaddingLeft).toBe('29px')
|
||||
expect(metrics.content.width).toBeCloseTo(width - 56, 0)
|
||||
expect(metrics.content.left).toBeCloseTo(28, 0)
|
||||
expect(metrics.styles.mainPaddingLeft).toBe('28px')
|
||||
expect(metrics.styles.titleFontSize).toBe('24px')
|
||||
expect(metrics.environment.height).toBeCloseTo(width === 375 ? 79 : 81, 0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user