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

Make the breadcrumbs component more flexible #211

Merged
merged 2 commits into from
Jul 15, 2021

Conversation

peteryates
Copy link
Member

  • Allow breadcrumbs to take an array of content
  • Add a #govuk_breadcrumb_link_to helper

This should allow extra flexibility when creating lists of breadcrumbs.
The contents of the breadcrumb link array will be entirely customisable
by the developer, including adding custom HTML attributes to each list
item.

A new #govuk_breadcrumb_link_to will be added shortly that can be used
in conjunction with the BreadcrumbsComponent
This is intended to be used in conjunction with the
GOVUKComponents::BreadcrumbsComponent which now accepts a list of
hyperlinks in addition to a hash of link names/targets.
@peteryates peteryates merged commit 9f6e96d into version-2.0.0 Jul 15, 2021
@peteryates peteryates deleted the version-2.0.0-pp-breadcrumbs branch July 15, 2021 15:10
@peteryates peteryates added this to the Version 2.0.0 milestone Jul 25, 2021
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

1 participant