Skip to content

Conversation

@colinrotherham
Copy link
Contributor

Description

This PR is a duplicate of alphagov/govuk-frontend#6454 to close #1227

Checklist

@colinrotherham colinrotherham added this to the v10.2.0 milestone Nov 21, 2025
@colinrotherham colinrotherham added 🐛 bug Something isn't working the way it should (including incorrect wording in documentation) date input labels Nov 21, 2025
@colinrotherham colinrotherham temporarily deployed to nhsuk-frontend-pr-1699 November 21, 2025 14:35 Inactive
colinrotherham and others added 2 commits November 21, 2025 14:39
Due to an upstream issue in Safari on iOS 18 (and potentially 17), the box model calculations for these inputs go iffy when the value is deleted and re-typed.

The upstream issue was reported during the beta period of iOS 26 and fixed in the release of iOS 26 in September, however no fix for older versions seems to be coming, so we should prevent the issue in our own code in the meantime.

NHS.UK Frontend issue: #1227
Our bug report: alphagov/reported-bugs#90

Co-authored-by: beeps <[email protected]>
@colinrotherham colinrotherham force-pushed the fix-date-input-alignment-ios18 branch from cde8d74 to 475caf2 Compare November 21, 2025 14:39
@colinrotherham colinrotherham temporarily deployed to nhsuk-frontend-pr-1699 November 21, 2025 14:40 Inactive
@sonarqubecloud
Copy link

@rowellx68
Copy link

Thanks for this @colinrotherham. I've not been able to test this with iOS 18 recently since my iPad has updated already, but we applied this CSS back then and that fixed the issue for us.

@colinrotherham colinrotherham merged commit aaa23ef into main Nov 25, 2025
13 checks passed
@colinrotherham colinrotherham deleted the fix-date-input-alignment-ios18 branch November 25, 2025 09:21
anandamaryon1 pushed a commit that referenced this pull request Nov 25, 2025
Prevent date inputs shifting alignment on iOS 18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working the way it should (including incorrect wording in documentation) date input

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Date Input layout shift on iPad

5 participants