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

Move breadcrumb outside the main element #478

Merged
merged 2 commits into from
Jun 13, 2017

Conversation

gemmaleigh
Copy link
Contributor

What problem does the pull request solve?

This allows users to skip directly to the page content, avoiding the repetition of the breadcrumb on each page.

The <main> tag is wrapped with a containing div site-wrapper, to establish a central column.
The breadcrumb is a child of the site-wrapper container.

The <main> element starts after the breadcrumb.

GOV.UK currently has the breadcrumb inside the <main> element, ideally, the two should be consistent.

Fixes #343.

What type of change is it?

  • Bug fix (non-breaking change which fixes an issue)

Has the documentation been updated?

  • I have read the CONTRIBUTING document.

Add a site-wrapper container, move the breadcrumb outside the main
element.
Rather than make a breaking change to govuk-elements-sass by removing
@extend %site-width-container from the #content area, instead -
override it in the documentation styles. Not pretty, but I’d prefer not
to make a breaking change for a fix to govuk_elements (the app).
@gemmaleigh gemmaleigh temporarily deployed to govuk-elements-review-pr-478 June 1, 2017 13:29 Inactive
Copy link

@kr8n3r kr8n3r left a comment

Choose a reason for hiding this comment

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

i see no issues

@gemmaleigh
Copy link
Contributor Author

@tombye can you please confirm this fixes your issue.

If so, we'll need to let GOV.UK Publishing know to amend their breadcrumbs too.

cc. @NickColley.

@tombye
Copy link
Contributor

tombye commented Jun 7, 2017

Yep, this fixes it and provides a nice description of the changes needed if people follow this approach. 👍

@gemmaleigh gemmaleigh merged commit 8e34ec7 into master Jun 13, 2017
@gemmaleigh gemmaleigh deleted the move-breadcrumb-outside-main branch June 13, 2017 15:40
@NickColley
Copy link
Contributor

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.

Skiplink moves focus to before the phase banner
4 participants