Summary list borders sometimes don't render properly on Safari #5339
Labels
awaiting triage
Needs triaging by team
🐛 bug
Something isn't working the way it should (including incorrect wording in documentation)
Description of the issue
Sometimes the grey borders between the rows of the govuk-summary-list component on Safari don't render in a straight line, and have discontinuities between the section under the key and the section under the value. This is usually 1px, but is often more. Sometimes the grey border renders twice on the same row. This can most easily be seen if you add a div of a fixed size within the value field, but it can even be spotted on the example on the gds page.
Screenshots
Here is the 1px discontinuity in the example from the gds summary list page:
Adding a div with a fixed height into the value field causes the border to duplicate below the address field.
Adding text above the div makes the border briefly double it's thickness below the address field and removes the duplication.
All of these examples look normal on Chrome and Firefox.
How to replicate
This seems to be a bug in Safari with the
display: table
css property in conjunction with theborder-collapse: collapse
, and the fact that we are using an odd px border. Interestingly, changing the border width to an even number fixes the problem. For reference, I can replicate this issue with a simplified version of the gov component here:Which produces this on Safari:
And this on Chrome:
I have managed to replicate this on 3 out of 4 tested Macs, Safari versions 17.6 and 18.0, and on iOS.
Version
The text was updated successfully, but these errors were encountered: