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

Add breadcrumbs component #12

Merged
merged 2 commits into from
May 13, 2020
Merged

Add breadcrumbs component #12

merged 2 commits into from
May 13, 2020

Conversation

peteryates
Copy link
Member

Add a basic breadcrumbs component. It takes a hash breadcrumbs in the format { link => target }

@breadcrumbs = {
  'Level one'   => '/level-one/',
  'Level two'   => '/level-one/level-two/',
  'Level three' => nil   # don't link to the current page
}
render GovukComponent::Breadcrumbs.new(breadcrumbs: @breadcrumbs)

@peteryates peteryates requested a review from rjlynch May 13, 2020 15:01
Copy link
Contributor

@rjlynch rjlynch left a comment

Choose a reason for hiding this comment

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

Very nice 👍

@peteryates peteryates merged commit 30716e1 into master May 13, 2020
@peteryates peteryates deleted the add-breadcrumbs-component branch May 13, 2020 15:26
@tvararu
Copy link
Collaborator

tvararu commented May 13, 2020

👍

@peteryates peteryates mentioned this pull request May 18, 2020
21 tasks
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.

None yet

3 participants