Work out whether to include aria-labelledby
on error summary and notification banner
#1954
Closed
3 tasks
Labels
accessibility
documentation
User requests new documentation or improvements to existing documentation
error summary
🕔 hours
A well understood issue which we expect to take less than a day to resolve.
notification banner
What
@selfthinker has flagged that
aria-labelledby
on the error summary is redundant as the error summary is not a landmark. This article by the Paciello Group seems to also support that.EDIT: Removing the
aria-labelledby
completely changes the behaviour in VoiceOver (macOS) so we need to do further testing to understand what's going on.Why
If we're using the attribute incorrectly and unnecessarily we should remove it. We can then also remove the corresponding id from the
<h2>
in the error summary.Further detail
It seems that
aria-labelledby
was originally added together withrole="group"
as discussed here:However we have since swapped
group
foralert
which seems to makearia-labelledby
redundant.We should test that the error summary continues to work correctly with the assistive technologies we support if
aria-labelledby
is removed.Who needs to know about this
Developers, Mark as this will be a breaking change at least for fixtures
Done when
The text was updated successfully, but these errors were encountered: