Skip to content

Commit aaa23ef

Browse files
Merge pull request #1699 from nhsuk/fix-date-input-alignment-ios18
Prevent date inputs shifting alignment on iOS 18
2 parents 889c3bd + 475caf2 commit aaa23ef

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ This change was introduced in [pull request #1686: Remove ↑ up and ↓ down ar
131131
- [#1686: Remove ↑ up and ↓ down arrow key bindings from tabs](https://github.com/nhsuk/nhsuk-frontend/pull/1686)
132132
- [#1689: Only show header navigation items if not empty](https://github.com/nhsuk/nhsuk-frontend/pull/1689)
133133
- [#1698: Fix 2px minimum chevron `outline-width` syntax](https://github.com/nhsuk/nhsuk-frontend/pull/1698)
134+
- [#1699: Prevent date inputs shifting alignment on iOS 18](https://github.com/alphagov/govuk-frontend/pull/1699)
134135

135136
## 10.1.0 - 15 October 2025
136137

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
display: inline-block;
2222
margin-right: nhsuk-spacing(4);
2323
margin-bottom: 0;
24+
25+
// Prevents an issue in iOS Safari 18 where the items vertically
26+
// shift when the value of inputs is changed.
27+
// https://github.com/alphagov/reported-bugs/issues/90
28+
vertical-align: bottom;
2429
}
2530

2631
.nhsuk-date-input__label {

0 commit comments

Comments
 (0)