Skip to content

Commit 9cf64ea

Browse files
committed
Prevent date inputs shifting alignment on iPadOS
Due to an upstream issue in Safari on iPadOS 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 iPadOS 26 and fixed in the release of iPadOS 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: nhsuk/nhsuk-frontend#1227 Our bug report: alphagov/reported-bugs#90
1 parent 71a2677 commit 9cf64ea

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ For advice on how to use these release notes, see [our guidance on staying up to
44

55
## Unreleased
66

7+
### Fixes
8+
9+
We've made fixes to GOV.UK Frontend in the following pull requests:
10+
11+
- [#6454: Prevent date inputs shifting alignment on iPadOS 18](https://github.com/alphagov/govuk-frontend/pull/6454) – thanks to @rowellx68 for reporting this issue and @colinrotherham for suggesting the fix.
12+
713
## v6.0.0-beta.1 (Beta breaking release)
814

915
### Breaking changes

packages/govuk-frontend/src/govuk/components/date-input/_index.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
display: inline-block;
1515
margin-right: govuk-spacing(4);
1616
margin-bottom: 0;
17+
18+
// Prevents an issue in Safari 18 on iPad where the items shift
19+
// vertically when the value of inputs is changed.
20+
// https://github.com/alphagov/reported-bugs/issues/90
21+
vertical-align: bottom;
1722
}
1823

1924
.govuk-date-input__label {

0 commit comments

Comments
 (0)