Skip to content

Commit 84cc312

Browse files
committed
Prevent date inputs shifting alignment on iOS 18
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: nhsuk/nhsuk-frontend#1227 Our bug report: alphagov/reported-bugs#90
1 parent a3f5c2e commit 84cc312

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 iOS 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 iOS Safari 18 where the items vertically
19+
// shift 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)