# UI/Accesibility: Breadcrumbs in the document index

**URL:** <https://forum.xwiki.org/t/ui-accesibility-breadcrumbs-in-the-document-index/12866>\
**Category:** Development\
**Tags:** accessibility\
**Created:** [July 25, 2023, 2:55pm UTC](https://forum.xwiki.org/t/ui-accesibility-breadcrumbs-in-the-document-index/12866 "2023-07-25T14:55:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CharpentierLucas](https://forum.xwiki.org/user_avatar/forum.xwiki.org/charpentierlucas/32/4830_2.png) [@CharpentierLucas](https://forum.xwiki.org/u/CharpentierLucas)\
**Post date:** [July 25, 2023, 2:55pm UTC](https://forum.xwiki.org/t/ui-accesibility-breadcrumbs-in-the-document-index/12866/1 "2023-07-25T14:55:09Z")

</div>

Good afternoon!  
When working on **XWIKI-20696: Accessibility best-practice: use landmarks in view pages** ([Jira issue](https://jira.xwiki.org/browse/XWIKI-20696) & [PR](https://github.com/xwiki/xwiki-platform/pull/2133/)), we had a discussion with @MichaelHamann about the breadcrumb on document tables like the one in the Index of the wiki.

_The Index page after the PR changes, with every landmark highlighted in a pink square_

 ![20696-NavigationPanelFixed](https://forum.xwiki.org/uploads/default/original/2X/8/8d4662d512e881fe753076339698507d3a0dce24.png)

**Where the issue arose:**  
A. We want landmarks on wiki pages. Breadcrumbs as they are very much fit the bill for being \<nav\> (a landmark role) elements.  
B. We have one breadcrumb for every entry in document tables, to show location of the document.  
C. From [MDN web docs](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns): " [Landmark roles](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#3._landmark_roles) are intended to be used sparingly, to identify larger overall sections of the document. Using too many landmark roles can create “noise” in screen readers, making it difficult to understand the overall layout of the page."

A, B and C are not compatible together AFAIK.  
**The solutions:**

1. Let A off: we remove the landmarks from the breadcrumbs in tables.
2. Let B off: we replace the breadcrumb in tables by another “simpler” element that just displays the location of the document, without links.
3. Let C off: we ignore the recommendation on those pages and just go with a cluttered UI for screen reader users.

No solution is perfect here, and @MichaelHamann figured that we should ask on the forum to reach some consensus to close/merge this PR some day 🙂

* * *

**My opinion:**  
-1 for 1. The breadcrumb ‘brick’ of UI should be the same whatever the place, making an exception for this seems like just bad UI practice.  
+1 for 2. I think the visual UI looks already cluttered and there’s way too many interactive elements on the page. For me, we should fix this usability shortfall first. One issue of this would be to reduce possible interactions, which could be a slight regression on usability for power-user.  
+0 for 3. This is the easiest choice, and the {{documents}} macro that generates such problematic tables are not on every page, it’s rare enough that we can manage a bit of user unfriendliness. It’s not a “hard” WCAG rule or break of ARIA and I think going against the recommendation here would make sense.

* * *

What do you think of those solutions?  
Is there an easier solution that would conciliate all three requirements?

Thank you for your help!  
Lucas Charpentier

---

<div class="post-metadata">

**Author:** ![MichaelHamann](https://forum.xwiki.org/user_avatar/forum.xwiki.org/michaelhamann/32/3813_2.png) [@MichaelHamann](https://forum.xwiki.org/u/MichaelHamann)\
**Post date:** [July 27, 2023, 10:19am UTC](https://forum.xwiki.org/t/ui-accesibility-breadcrumbs-in-the-document-index/12866/2 "2023-07-27T10:19:35Z")

</div>

The breadcrumb at the top is very different from the breadcrumbs in the table: it also contains sub-trees to quickly navigate to other pages that aren’t shown in the main breadcrumb so this is a lot more of a navigation element than the breadcrumbs in the table. Therefore, I’m for solution 1.

---

<div class="post-metadata">

**Author:** ![Simpel](https://forum.xwiki.org/user_avatar/forum.xwiki.org/simpel/32/3655_2.png) [@Simpel](https://forum.xwiki.org/u/Simpel)\
**Post date:** [July 28, 2023, 8:58pm UTC](https://forum.xwiki.org/t/ui-accesibility-breadcrumbs-in-the-document-index/12866/3 "2023-07-28T20:58:55Z")

</div>

+1 for 1  
First the entries in that table row show the location. Second they are probably used for navigation. XWiki users will easily learn, that location in XWiki often is shown with clickable links of spaces.  
I wouldn’t let C off. And breadcrumbs are singletons and show the location of the current site.

---

<div class="post-metadata">

**Author:** ![mflorea](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mflorea/32/49_2.png) [@mflorea](https://forum.xwiki.org/u/mflorea)\
**Post date:** [August 1, 2023, 9:56am UTC](https://forum.xwiki.org/t/ui-accesibility-breadcrumbs-in-the-document-index/12866/4 "2023-08-01T09:56:52Z")

</div>

Same as Michael, +1 for 1.

-0 for 2 because I think it’s useful to be able to navigate from the live data to an ancestor of the listed wiki page.

Thanks,  
Marius

---

<div class="post-metadata">

**Author:** ![CharpentierLucas](https://forum.xwiki.org/user_avatar/forum.xwiki.org/charpentierlucas/32/4830_2.png) [@CharpentierLucas](https://forum.xwiki.org/u/CharpentierLucas)\
**Post date:** [August 8, 2023, 4:12pm UTC](https://forum.xwiki.org/t/ui-accesibility-breadcrumbs-in-the-document-index/12866/5 "2023-08-08T16:12:50Z")

</div>

Thank you for your feedback! 🙂

Implemented solution n°1 in [https://github.com/xwiki/xwiki-platform/pull/2133/commits/7378a9fe2a7e06fe776af8ef3cf30c9157f5305f](https://github.com/xwiki/xwiki-platform/pull/2133/commits/7378a9fe2a7e06fe776af8ef3cf30c9157f5305f)

Have a good day!

Lucas C.
