Opened 10 years ago
Last modified 7 years ago
#2635 new defect (bug)
Accessibility: Templates - Breadcrumbs
Reported by: | netweb | Owned by: | |
---|---|---|---|
Milestone: | 2.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General - Accessibility | Keywords: | |
Cc: | mercijavier@… |
Description
via Karl Groves bbPress Accessibility Feedback https://gist.github.com/ntwb/c8f99df8a714ed028e2d
Suggested breadcrumb markup
Note: The stuff in the breadcrumb separator span should be CSS generated content.
In the following model it'd be: .bbp-breadcrumb ul li a::after{ content: ' ›'; }
Proposed:
<div class="bbp-breadcrumb"> <ul> <li><a href="http://wp-test:8888/" class="bbp-breadcrumb-home">Home</a></li> <li><a href="http://wp-test:8888/?post_type=forum" class="bbp-breadcrumb-root">Forums</a></li> <li><span class="bbp-breadcrumb-current">Developers – General</span></li> </ul> </div>
Current:
<div class="bbp-breadcrumb"> <p> <a href="http://wp-test:8888/" class="bbp-breadcrumb-home">Home</a> <span class="bbp-breadcrumb-sep">›</span> <a href="http://wp-test:8888/?post_type=forum/" class="bbp-breadcrumb-root">Forums</a> <span class="bbp-breadcrumb-sep">›</span> <span class="bbp-breadcrumb-current">Developers – General</span> </p> </div>
Attachments (2)
Change History (8)
Note: See
TracTickets for help on using
tickets.
A basic plugin to achieve 'close' to the intended results is here: https://gist.github.com/ntwb/fe3dec3ac219cd0ef322
It needs some CSS tweaks though the HTML of the breadcrumbs is:
As to a patch for this ticket in it's current form by moving the separator to CSS is unlikely.
Users have the ability as the above plugin shows to customize the breadcrumbs quite significantly already and this includes the separator character, 'out of the box' bbPress also supports LTR and RTL:
Moving the separator to CSS using
a::after{ content: ' ›'; }
will remove the ability for users to filter the separator and will break backwards compatibility and not allow us to switch separators for RTL CSS.Changing the default breadcrumbs to use a list item format (using the defaults per the above plugin) should be fine.