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
Label Breadcrumb Navigation and Item List #369
Conversation
…and describe the nav item list.
@jkva Question: when this component is rendered, what immediately proceeds it? I'm concerned that, as is often the case with in-page/breadcrumb navs, the content straight after the list will incorrectly become a child of the breadcrumb If there is no guaranteed heading after the breadcrumbs, I'd vote to remove this new Otherwise, let's talk about an alternative route forward. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment.
… to non-nestable signpost heading.
@jscholes it's proceeded by the next |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering, because I looked at the way these breadcrumbs are currently represented in the HTML, and there is an aria-label
present. It was added by the react-bootstrap
library, even though it's not obvious from looking at the code. So that makes me wonder if the changes here are needed or not. What do you think?
@alflennik The issue was initially raised based on the state of the rendered mark-up, so it's likely that some form of change is still required. Or, in other words, that whatever Bootstrap is doing is not sufficient and/or correct. However, if you can indicate how Boostrap is behaving, we can definitely adapt this PR if needed. What |
This PR addresses the following item from PAC's "ARIA-AT App Screen Reader Accessibility Observations" document:
Effective changes:
nav
as "Breadcrumb" viaaria-label
; andaria-labelledby
associate it with theol
nav items.@jscholes the React Bootstrap
BreadCrumb
component does not support adding a child that's not a breadcrumb item; it will position it inside the unordered list. Hence it does not seem possible to place theh2
inside thenav
while it precedes theol
.The only possible alternative that I can see is to forego the
h2
andaria-label
theol
directly, which is possible.