Skip to content

Commit e1bf165

Browse files
Merge pull request #1699 from nhsuk/fix-date-input-alignment-ios18
Prevent date inputs shifting alignment on iOS 18
2 parents 2aed7bd + 3b37023 commit e1bf165

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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)