Visually Hidden Audit
Test name,Link,VoiceOver OSX,VoiceOver iOS,VoiceOver iPad,NVDA,JAWS,IE8,IE9,IE10,Internet Explorer 11 (Windows),Edge (Windows),Google Chrome (Windows),Mozilla Firefox (Windows),Safari (macOS),Google Chrome (macOS),Mozilla Firefox (macOS),Safari (iOS),Google Chrome (iOS),Google Chrome (Android),Samsung Internet (Android)
Control,https://output.jsbin.com/yesilis,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected
Visually Hidden with CSS,https://output.jsbin.com/xiqohaz,"Visually hidden text in links is always at the front for example: ""link, name Change"".
This is still the same if the visually hidden text is in the middle of the link.
Buttons behave as expected.
","When swiping left and right visually hidden text is read out.
When pressing on links directly visually hidden text is not read out.
When visually hidden text is in the middle of a link, pressing directly on them results in only the end of the link (or start if pressed near the start) being read out.
Buttons behave as expected.","When swiping left and right visually hidden text is read out.
When pressing on links directly visually hidden text is not read out.
When visually hidden text is in the middle of a link, pressing directly on them results in only the end of the link (or start if pressed near the start) being read out.
Buttons behave as expected.",As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,"Interruption in the outline, when outline is default user agent styles.
See screenshots in document.",As expected,As expected,As expected,As expected,As expected,As expected
Visually Hidden with CSS (updated based on Heydon Pickering’s article),https://output.jsbin.com/foliqur,As expected,"When swiping left and right visually hidden text is read out.
When pressing on links directly visually hidden text is not read out.
When visually hidden text is in the middle of a link, pressing directly on them results in only the end of the link (or start if pressed near the start) being read out.
Buttons behave as expected.","When swiping left and right visually hidden text is read out.
When pressing on links directly visually hidden text is not read out.
When visually hidden text is in the middle of a link, pressing directly on them results in only the end of the link (or start if pressed near the start) being read out.
Buttons behave as expected.",As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,"Small interruption in the outline, when outline is default user agent styles.
See screenshots in document.",As expected,As expected,As expected,As expected,As expected,As expected
Visually Hidden with CSS (updated based on BBC news),https://output.jsbin.com/tacobik,As expected,"When swiping left and right visually hidden text is read out.
When pressing on links directly visually hidden text is not read out.
When visually hidden text is in the middle of a link, pressing directly on them results in only the end of the link (or start if pressed near the start) being read out.
Buttons behave as expected.","When swiping left and right visually hidden text is read out.
When pressing on links directly visually hidden text is not read out.
When visually hidden text is in the middle of a link, pressing directly on them results in only the end of the link (or start if pressed near the start) being read out.
Buttons behave as expected.",As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,"Small disruption in the outline, when outline is default user agent styles.
See screenshots in document.",As expected,As expected,As expected,As expected,As expected,As expected
Visually Hidden with CSS (updated GOV.UK version),https://output.jsbin.com/zupoceb,As expected,"When swiping left and right visually hidden text is read out.
When pressing on links directly visually hidden text is not read out.
When visually hidden text is in the middle of a link, pressing directly on them results in only the end of the link (or start if pressed near the start) being read out.
Buttons behave as expected.","When swiping left and right visually hidden text is read out.
When pressing on links directly visually hidden text is not read out.
When visually hidden text is in the middle of a link, pressing directly on them results in only the end of the link (or start if pressed near the start) being read out.
Buttons behave as expected.",As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,"Small disruption in the outline, when outline is default user agent styles.
See screenshots in document.",As expected,As expected,As expected,As expected,As expected,As expected
Visually Hidden with CSS and duplicate aria-hidden content,https://output.jsbin.com/zeruneg,As expected,"Reads as expected.
VoiceOver virtual focus area is moved to where the invisible text might be, instead of around the link itself.
When links are close together it can mean that it's not clear which link is in focus.","Reads as expected.
VoiceOver virtual focus area is moved to where the invisible text might be, instead of around the link itself.
When links are close together it can mean that it's not clear which link is in focus.",As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,As expected,"See original 'Visually hidden CSS' but all interruptions are at the end of the element.
See screenshots in document.",As expected,As expected,As expected,As expected,As expected,As expected
aria-label,https://output.jsbin.com/kuyagos,As expected,As expected,As expected,As expected,As expected,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
aria-label with duplicated text (similar to visually hidden class approach),https://output.jsbin.com/linegun,"Visually hidden text in links is always at the front for example: ""link, name Change"".
This is still the same if the visually hidden text is in the middle of the link.
Buttons behave as expected.
","When swiping left and right visually hidden text is read out.
When visually hidden text is in the middle of a link, pressing directly on them results in only the end of the link (or start if pressed near the start) being read out.
Buttons behave as expected.","When swiping left and right visually hidden text is read out.
When visually hidden text is in the middle of a link, pressing directly on them results in only the end of the link (or start if pressed near the start) being read out.
Buttons behave as expected.",Decided not to proceed with these,Decided not to proceed with these,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
aria-labelledby,https://output.jsbin.com/fogaqi,As expected,As expected,Decided not to proceed with these,Decided not to proceed with these,Decided not to proceed with these,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
aria-describedby,https://output.jsbin.com/gigovag,"Announces the context after first announcing the link: ""link, Change [long pause] Name""","Announces the context after first announcing the link: ""link, Change [long pause] Name""",Decided not to proceed with these,Decided not to proceed with these,Decided not to proceed with these,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
In VoiceOver for OSX, visually hidden text in links are read in the wrong order.
2019-04-01 - 2019-07-01
GOV.UK Design System team Audit (Google Sheets)
GOV.UK Design System team audit (Gist CSV)
We should update the govuk-visually-hidden class to remove the negative margin which will fix the ordering issue in VoiceOver for OSX.
We should recommend using aria-label or aria-labelledby where it makes sense to.
Visually hidden CSS can result in text not being read out when touching on iOS, this is regrettable but does not cause a hard barrier as users can explore the surrounding content to understand context.
For the examples I’m using the Summary list component I’ve put together some examples of what we could consider:
https://gist.github.com/marcol/3979586
Updates margin from -1px to 0
We met with the accessibility team to discuss the problem.
Anika
Consider leaving it ‘as is’ depending on the outcome of the audit. Most issues found in the GOV.UK Elements fix works were with VoiceOver, both iOS and OSX.
Note that when testing with the GOV.UK Design System outlines these are not visible.
When clicking on ‘change’ link