-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix breadcrumbs WCAG fails in government-frontend #3338
Fix breadcrumbs WCAG fails in government-frontend #3338
Conversation
da7817e
to
6329c20
Compare
6329c20
to
964bd40
Compare
5561877
to
8e934ff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!, the changes look good to me overall.
I think that we should still move the breadcrumbs component before the main
element in the _main_section_layout
template, this will follow the design system guidance and fix the accessibility issue by allowing users to jump straight to the main content.
Another issue spotted when reviewing this is that the breadcrumbs also have the same aria-label value, I will create a new Trello card to capture this issue so it can be fixed.
8e934ff
to
62fb680
Compare
I've moved the breadcrumbs out of main, so this should now be fixed. Pages to test:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me, nice work 👍
Follow these steps if you are doing a Rails upgrade.
What
goverment-frontend places breadcrumbs inside the
<main>
container in some places, creating a WCAG fail. I’ve investigated all the templates in the repo and this problem is present in all the page templates that import the breadcrumbs, apart from /app/views/layouts/application.html.erb:Move the breadcrumbs out of the main container in each of the impacted templates.
There is one more template using the breadcrumbs component: /app/views/content_items/manuals/_manual_section_layout.html.erb
This is used e.g. in /guidance/immigration-rules/immigration-rules-appendix-continuous-residence but it represents the second breadcrumb component, not the first one,
so nothing needs to be donebut as pointed out by @MartinJJones it also needs to be addressesed.Why
Having the breadcrumbs inside the main container is a WCAG fail.
Trello card