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 missing headings and replace subpage breadcrumb with back link #3202

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

matthillco
Copy link
Contributor

@matthillco matthillco commented May 28, 2024

What

The main content of the page doesn’t have a heading. There is the H1 of the manual header and then no other heading until the footer. Other pages within manuals have a heading before the lead paragraph. Trello

Why

These pages currently fail on accessibility and need to be fixed according to the findings of the DAC audit.

How

  • Replaced the landing-page breadcrumb with H2
  • Replaced the sub-page breadcrumb with the back link component
  • Added a "Contents" H2 above the document list
  • Rewrote tests accordingly

Before/After: Missing Headings

image

Before After: Replace breadcrumb with back link (Section)

image

Before After: Replace breadcrumb with back link (Updates)

image

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

Follow these steps if you are doing a Rails upgrade.

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3202 May 28, 2024 15:50 Inactive
@matthillco matthillco force-pushed the a11y-page-missing-main-heading branch from d8a5957 to 862089d Compare May 28, 2024 16:09
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3202 May 28, 2024 16:09 Inactive
@matthillco matthillco force-pushed the a11y-page-missing-main-heading branch from 862089d to 0e49a5e Compare June 4, 2024 15:26
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3202 June 4, 2024 15:27 Inactive
@matthillco matthillco force-pushed the a11y-page-missing-main-heading branch from 0e49a5e to 08e5dce Compare June 4, 2024 16:16
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3202 June 4, 2024 16:16 Inactive
@matthillco matthillco force-pushed the a11y-page-missing-main-heading branch from 08e5dce to d9ff5f2 Compare June 5, 2024 09:51
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3202 June 5, 2024 09:51 Inactive
@matthillco matthillco force-pushed the a11y-page-missing-main-heading branch from d9ff5f2 to 59282d5 Compare June 5, 2024 11:23
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3202 June 5, 2024 11:23 Inactive
@matthillco matthillco marked this pull request as ready for review June 5, 2024 13:06
Copy link
Contributor

@KludgeKML KludgeKML left a comment

Choose a reason for hiding this comment

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

LGTM!

@matthillco matthillco changed the title Fix missing headings and replace subpage breadcrumb with back link [WIP] Fix missing headings and replace subpage breadcrumb with back link Jun 6, 2024
@CodeSonia CodeSonia force-pushed the a11y-page-missing-main-heading branch from 59282d5 to 32236e0 Compare June 13, 2024 10:00
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3202 June 13, 2024 10:00 Inactive
@CodeSonia CodeSonia force-pushed the a11y-page-missing-main-heading branch from 32236e0 to d1e6bf8 Compare June 13, 2024 11:33
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3202 June 13, 2024 11:33 Inactive
@CodeSonia CodeSonia changed the title [WIP] Fix missing headings and replace subpage breadcrumb with back link Fix missing headings and replace subpage breadcrumb with back link Jun 13, 2024
Copy link
Contributor

@unoduetre unoduetre left a comment

Choose a reason for hiding this comment

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

I assumed the style changes in _manual.scss have been discussed with the previous reviewer, so I didn't focus on those, but if not, would it make sense to discuss with a frontend dev?

@CodeSonia CodeSonia force-pushed the a11y-page-missing-main-heading branch from d1e6bf8 to af4c0b2 Compare June 13, 2024 13:47
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3202 June 13, 2024 13:47 Inactive
* Replaced the landing-page breadcrumb with H2
* Replaced the sub-page breadcrumb with the back link component
* Added a "Contents" H2 above the document list
* Rewrote tests accordingly
@CodeSonia CodeSonia force-pushed the a11y-page-missing-main-heading branch from af4c0b2 to 8128fb2 Compare June 13, 2024 14:15
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3202 June 13, 2024 14:15 Inactive
Copy link
Contributor

@unoduetre unoduetre 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 to me.

@unoduetre unoduetre merged commit 81265ff into main Jun 13, 2024
11 checks passed
@unoduetre unoduetre deleted the a11y-page-missing-main-heading branch June 13, 2024 14:35
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.

5 participants