Repository navigation
Breadcrumbs #6108
Replies: 26 comments
|
We had a question from a designer about the best way to truncate long text in breadcrumbs. |
|
I'd like to propose harmonising the designs for breadcrumbs and back links. At the moment they're similar, but have different underline styling. I'd like it if we could have the same underline styling for both. The text position stays the same, but the lower underline makes the element perceptually larger and appear to move when you go between pages. My service uses both breadcrumbs and back links depending on whether you're in the portally type bit, or in a flow with back links. When moving between pages, it feels odd that the underline changes for something that's otherwise a conceptually similar action. My preference would probably be an underline somewhere between the two - not as much space as the back link, but more than the regular underline. I presume it was shifted down in the back link to allow some space below the arrow. |
|
We're doing a little bit an accessibility review on our site at the moment and in doing so I had a look at our site breadcrumbs, which currently use the GOV.UK Design System pattern. When testing with voiceover, I noticed that there was no indication, on entering the breadcrumb trail, that you'd entered a breadcrumb/nav section. On reading https://www.w3.org/TR/wai-aria-practices/examples/breadcrumb/index.html, they seem to recommend to use of a Happy to put up a PR if this feels like a thing that was missed rather than being the outcome of a specific decision. |
|
@samuelhwilliams From memory we used I believe the consensus was - If the breadcrumb is the only form of navigation on the page then it should be marked up using I cannot find this rationale recorded anywhere so it might be worth double checking with the accessibility team too. |
|
There's some more historical context here: alphagov/govuk_elements#412 I'd be happy to revisit this, but we'd want to test any change pretty thoroughly and it's not a priority right now. The Design System / GOV.UK Frontend will be audited in the next couple of months, so we'll see if anything gets flagged as part of that. |
Was there ever an answer to this question? Should we be truncating long text in breadcrumbs? |
Consider adding aria-current="page" to the last list item in the W3C example. BTW, I think that the combination of role and name combination makes it reasonable to implement multiple navigations on the same page (site, navigation; breadcrumbs, navigation; etc). |
|
In terms of why we don't put breadcrumbs in a navigation landmark I've documented that decision here: alphagov/govuk-frontend#1604 (comment)
We do add this attribute to the last item at the moment, thanks for the reminder though. |
|
As mentioned in a previous comment, the WAI-AIRA Authoring Practises breadcrumb example applies an |
|
Are there any research findings/design documentation around why the breadcrumb uses the |
|
@JeffersonBledsoe Is that issue due to the list having no list style? It's a feature not a bug: https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html
|
|
During a recent accessibility audit of our service, our auditor told us that the |
|
I'd like to propose a design change that makes the GDS breadcrumbs component more accessible and increases usability. The last breadcrumb (on the right) usually always represents the page the user is currently on. Therefore, this breadcrumb should never appear as a link – as this will confuse users that rely on assistive technology. Currently, the link will reload the page the user is on, which will add no value or purpose to the user experience. Can this last link be styled to static text without any interactive aspect or underline styling? This is the adapted design from the GDS breadcrumb component for The National Archives 'Find Caselaw service'. We have found this avoids user confusion and increases accessibility value. |
|
@Terry-Price Our Breadcrumbs component guidance already states that the current page should not be included within the breadcrumb trail (emphasis mine):
It is also already possible for a breadcrumb item to be displayed as plain text by not setting the For example, the below Nunjucks code produces this result with the last item as plain text, also marked up with {{ govukBreadcrumbs({
items: [
{
text: "Home",
href: "/"
},
{
text: "Passports, travel and living abroad",
href: "/browse/abroad"
},
{
text: "Travel abroad"
}
]
}) }}Would our documentation benefit from better emphasising some of these? |
|
Thank you, yes I do think the emphasis should be increased if possible and also the on-page example could show the last breadcrumb without a link. That would really explain it very well to everyone. Be interested to know how many FE's use Nunjucks? We don't use it at TNA. |
|
we recently tested with a user with visual impairments and used software to zoom into the content more clearly. this user commented that they found it difficult to see the breadcrumbs when not zoomed in at a very high level and found it difficult to find the breadcrumb above the h1 has anyone else experienced this? |
|
Hello, when the screen is under 640px wide breadcrumbs link size and the space between the link are reduced below what is acceptable for WCAG2.2 criteria Target Size (minimum) 2.5.8. Thanks. |
|
Hi all, not sure if this is the right place for this question but here goes: The guidance says
Is there a component that does do this for a linear journey or transaction? Or assuming not, is there any research around why this isn't a desirable pattern? (Context - we build a service that is public but not directly under GOV.UK, and we're trying to decide between a "Back" button and a "journey progress bar".) |
|
@Binney hi, there is some info on why we don't tend to use them here: https://design-system.service.gov.uk/patterns/question-pages/#using-progress-indicators so I would start with Back link and see if there's a user need to try anything more complex |
|
Apologies if this has been covered elsewhere, but I couldn't find a published rationale after various searches. In 2017 GDS included the current page as a non-clickable item at the end of the breadcrumbs: https://designnotes.blog.gov.uk/2017/06/29/designing-new-navigation-elements-for-gov-uk/ The current component explicitly doesn't include it: https://design-system.service.gov.uk/components/breadcrumbs/#how-it-works I can't find a rationale for the change, and would be interested to know why it happened, particularly as both W3C and Google example markup include the current page: https://www.w3.org/WAI/ARIA/apg/patterns/breadcrumb/examples/breadcrumb/ |
|
I'm also interested in knowing why the component does not show the current page. A recent accessibility audit recommended to us that it should be shown:
|
|
@adriantoll @markjefferson-gov My finger-in-the-air reckon is that it's redundant with the GOV.UK page template. The breadcrumbs typically appear directly before the page's H1 in source order, the breadcrumb item and H1 would be expected to have the same text, and they both serve the same purpose of telling the user what page they're currently on. |
|
@querkmachine That's my guess too, and the reason we've done it that way with our sites, but given that W3C, Google, 2017-era GDS and many accessibility audits all agree that the current page should be included I'd be interested in knowing for sure. I'm used to GDS explaning those kinds of decisions in public somewhere! |
That makes sense. By that logic though, wouldn't the 'home' link also be redundant? We have an external audit coming up so I'll ask them specifically about this. |
|
For what it's worth, we've changed our approach to this so we now include the current page in the breadcrumb. The rationale for this was that on narrower devices (< 768px) our breadcrumb now stays fixed on the page. This made it too easy for people to think they were on the parent page after having scrolled down a bit because then the page title isn't visible below the breadcrumb. We also include it on desktop for consistency. Having thought a lot about this now, it really does feel like there isn't a right answer one way or the other, and depends very much on the context. If the breadcrumbs weren't fixed I don't think we'd have done this. You can see an example site here: https://demo.sites.thirdpress.com/our-programmes/quisque-nec-vehicula/ |


Uh oh!
There was an error while loading. Please reload this page.
Use this issue to discuss this component in the GOV.UK Design System.
All reactions