You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before, we had a couple of accessibility (a11y) issues that did not announce route changes to screen readers. Some of our projects address this issue by relying on changes in EuiHeaderBreadcrumbs and announcing breadcrumb elements in reverse order. For example, this solution was utilized here and here.
Today @zinckiwi suggested an excellent idea: why not move this functionality inside EuiHeaderBreadcrumbs and add an additional flag to enable or disable this feature? This might help us avoid code duplication across projects and, furthermore, enhance the accessibility of the library.
From the API perspective, the EuiHeaderBreadcrumbs component can accept one more property, focusRegionOnTextChange (boolean), and encapsulate the required logic probably reusing EuiScreenReaderLive inside.
Apologies if this answer is disappointing, but I consider this too prescriptive/opinionated for EUI and out of scope of our concerns (the same way that EUI is agnostic of app routing). We've given consumers the building blocks and accessibility tools/components to set up SPA route announcements, but specifying that breadcrumbs are the best way to do that is, in my opinion, a step too far for us.
The breadcrumb workaround I implemented in Kibana is in fact not my preferred approach - I would by far prefer that the window/page title to be what's announced/keyed off of - but I was hampered by the fact that Kibana plugins don't always update their window titles when they should, and breadcrumbs could be more relied on. However, it's not perfect in that several apps (that had to have one-off exceptions made for them) were not correctly updating breadcrumbs (or were updating them too often, leading to massive screen reader spam).
Again, I strongly consider this to be a consumer-level concern and not a design system/library one, and if needed consumers can create their own light wrapper around EuiHeaderBreadcrumbs if that is the architecture they prefer - but it's not one EUI specifically recommends.
Yes totally, no worries at all - we appreciate the suggestions and dialogue for sure (even if we don't end up using all of them!) Please do keep sending them our way!
Description
Before, we had a couple of accessibility (a11y) issues that did not announce route changes to screen readers. Some of our projects address this issue by relying on changes in
EuiHeaderBreadcrumbs
and announcing breadcrumb elements in reverse order. For example, this solution was utilized here and here.Today @zinckiwi suggested an excellent idea: why not move this functionality inside
EuiHeaderBreadcrumbs
and add an additional flag to enable or disable this feature? This might help us avoid code duplication across projects and, furthermore, enhance the accessibility of the library.From the API perspective, the
EuiHeaderBreadcrumbs
component can accept one more property,focusRegionOnTextChange (boolean)
, and encapsulate the required logic probably reusingEuiScreenReaderLive
inside.WCAG or Vendor Guidance
The text was updated successfully, but these errors were encountered: