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

Allow users to configure the URL for "Home" in breadcrumbs #55

Closed
adamjohnson opened this issue Jan 15, 2019 · 1 comment
Closed

Allow users to configure the URL for "Home" in breadcrumbs #55

adamjohnson opened this issue Jan 15, 2019 · 1 comment
Assignees

Comments

@adamjohnson
Copy link
Contributor

Link text used for multiple different destinations error

We see this accessibility error in local development on every single site we make. The "Home" href in the main nav is different from the "Home" href in the breadcrumbs. For example, one is:

  • https://launchlab.wvu.edu/home
  • and the other is:
  • #home

I would like to be able to customize the content of the href attribute in the r:breadcrumbs tag. I think this will help CleanSlate designers when remediating their sites. People like to be able to achieve a "clean slate" in local development (see what I did there?).

Relevant:

https://github.com/wvuweb/hammer/blob/master/hammer/services/tags/basic.rb#L487

@zeroedin
Copy link
Contributor

zeroedin commented Jan 15, 2019

I believe you can already do this by adding a breadcrumbs data point in mock_data.yml

breadcrumbs: |
  <ul class="wvu-breadcrumbs__crumbs">
    <li><a href="/">Home</a></li>
    <li class="active">Page</li>
  </ul>

By doing this however you lose the interpolation of attribute options from the radius tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants