This issue was initially described by Anika Henke.
Users of mobile devices, screen magnification or with narrow viewports will not be able to access parts of the navigation through the landmark list view in assistive technologies.
To reproduce the issue
Navigate to the prototype
Turn on a screen reader
Resize the browser viewport to wider than 700px
Call up the list of landmarks in the screenreader. The landmark list should contain banner, GOV.UK One Login menu navigation, Name of example service menu navigation.
Dismiss the landmark list
Reduce the viewport to less than 600px
Call up the list of landmarks in the screenreader
The landmark list will contain banner, Name of example service menu empty navigation.
Possible cause
The issue seems to relate to this line of code and/or the positioning of the elements within the <nav>:
This issue was initially described by Anika Henke.
Users of mobile devices, screen magnification or with narrow viewports will not be able to access parts of the navigation through the landmark list view in assistive technologies.
To reproduce the issue
banner, GOV.UK One Login menu navigation, Name of example service menu navigation
.banner, Name of example service menu empty navigation
.Possible cause
The issue seems to relate to this line of code and/or the positioning of the elements within the
<nav>
:display:none
removes the nav and its content from the accessibility tree. The content in the navigation should be hidden but the landmark should remain in the tree – see this blog post on navigation landmark discoverability for more details.