Skip to content
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 problem in the covid page #3763

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

unoduetre
Copy link
Contributor

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

What

collections places breadcrumbs inside the

container in app/views/coronavirus_landing_page/components/landing_page/_page_header.html.erb, creating a WCAG fail on the covid landing page.

Why

Having the breadcrumbs inside the main container is a WCAG fail.

Trello ticket

@unoduetre unoduetre changed the title Fix breadcrumbs a11y issue in the covid page Fix breadcrumbs WCAG problem in the covid page Sep 9, 2024
@unoduetre unoduetre force-pushed the 2822-fix-breadcrumbs-wcag-fail-in-collections-s-m branch from 30ade10 to 2c46495 Compare September 10, 2024 08:25
@unoduetre unoduetre force-pushed the 2822-fix-breadcrumbs-wcag-fail-in-collections-s-m branch from 2c46495 to fd9b5bf Compare September 10, 2024 09:02
@unoduetre unoduetre marked this pull request as ready for review September 10, 2024 09:56
color: govuk-colour("white");

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing it in a similar way to how it's done for /browse pages.

Copy link
Member

@hannalaakso hannalaakso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just left a couple of small comments.

@@ -15,27 +15,40 @@ $c19-landing-page-header-background: govuk-colour("blue");

.global-bar-present {
@include govuk-media-query($from: desktop) {
.covid__page-header {
.covid__breadcrumb-wrapper {
Copy link
Member

@hannalaakso hannalaakso Sep 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we think that these three renamed classes are still being used? Their parent is something called .global-bar-present but there doesn't seem to be
.global-bar-present on the page or in the app.

Copy link
Contributor Author

@unoduetre unoduetre Sep 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't change anything just to stay safe, but I also don't think .global-bar-present is still used, so I'm happy to remove this part. It's also used in browse pages, so I can also remove it from there. Please, let me know, if that's ok?

Copy link
Member

@hannalaakso hannalaakso Sep 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dug into this and realised this for the global banner coming from static: https://docs.publishing.service.gov.uk/manual/global-banner.html#activate-the-global-banner It might be good to double check that these styles work if the global banner is there although I think it's been a bit waffy to test with the global banner in the past since it's in static 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll test it with a global banner enabled in static.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just had a look at integration/coronavirus and it looks good to me with the global banner enabled 👍 I'm going to approve the PR but let me know if there was something else about the global banner I should be checking.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's all I think.

app/assets/stylesheets/views/_covid.scss Outdated Show resolved Hide resolved
@unoduetre unoduetre force-pushed the 2822-fix-breadcrumbs-wcag-fail-in-collections-s-m branch from fd9b5bf to 97385e7 Compare September 11, 2024 08:32
@govuk-ci govuk-ci temporarily deployed to collections-pr-3763 September 11, 2024 08:32 Inactive
Copy link
Member

@hannalaakso hannalaakso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing my comments, LGTM 👍

@unoduetre unoduetre merged commit 48204be into main Sep 11, 2024
14 checks passed
@unoduetre unoduetre deleted the 2822-fix-breadcrumbs-wcag-fail-in-collections-s-m branch September 11, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants