Describe the bug
While using this theme, any 'Archive' pages scroll in 2 dimensions on smaller screens.
To Reproduce
Steps to reproduce the behaviour:
Create a news item/post and give it a category
View the news item and scroll to the bottom - click in the bottom-right on the category link
The category/archive page you land on is where the issue happens
See error on small screens (I haven't tested it on all mobile screen sizes, but one I know for definite is that it happens on iPhone SE)
Expected behaviour
Websites should not scroll in 2 dimensions as per WCAG
Additional context
I am not sure why this only happens on the archive pages, as I believe the problem stems from the '-16px' of margin on the 'nhsuk-grid-row' class which is of course on every page. To fix on our own site, we simply did the following CSS:
Describe the bug While using this theme, any 'Archive' pages scroll in 2 dimensions on smaller screens.
To Reproduce Steps to reproduce the behaviour:
Expected behaviour Websites should not scroll in 2 dimensions as per WCAG
Additional context I am not sure why this only happens on the archive pages, as I believe the problem stems from the '-16px' of margin on the 'nhsuk-grid-row' class which is of course on every page. To fix on our own site, we simply did the following CSS:
.nhsuk-grid-row { margin-left: 0; margin-right: 0; }
I would assume our fix is not the best one however, as it affects all pages slightly, rather than just fixing the issue on the archive pages.