#3220 closed enhancement (fixed)
Accessibility: Avoid Adjacent Duplicate Links for Topic Author
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.6.1 | Priority: | normal |
Severity: | minor | Version: | trunk |
Component: | General | Keywords: | has-patch |
Cc: | mercime |
Description ¶
When a user's avatar is inserted before the user's name in the topic or forum loops, each item is individually wrapped in a link with the same destination. WCAG prefers that these items be contained within a single link: https://www.w3.org/TR/2014/NOTE-WCAG20-TECHS-20140311/H2
I've attached a patch that updates the HTML output from:
<a href="http://bptest.local/members/admin/" title="View Cap’n's profile" class="bbp-author-avatar"> <img alt="" src="//www.gravatar.com/avatar/3665d8d0d1b0eb151f8e941070fad664?s=14&r=g&d=mm" srcset="//www.gravatar.com/avatar/3665d8d0d1b0eb151f8e941070fad664?s=14&r=g&d=mm 2x" class="avatar avatar-14 photo" width="14" height="14"> </a> <a href="http://bptest.local/members/admin/" title="View Cap’n's profile" class="bbp-author-name">Cap’n</a>
to
<a href="http://bptest.local/members/admin/" title="View Cap’n's profile" class="bbp-author-link"> <span class="bbp-author-avatar"> <img alt="" src="//www.gravatar.com/avatar/3665d8d0d1b0eb151f8e941070fad664?s=14&r=g&d=mm" srcset="//www.gravatar.com/avatar/3665d8d0d1b0eb151f8e941070fad664?s=14&r=g&d=mm 2x" class="avatar avatar-14 photo" width="14" height="14"> </span> <span class="bbp-author-name">Cap’n</span> </a>
Thanks for considering this enhancement.
Commits (1)
- [6868] Accessibility: Avoid back-to-back author links.… by @johnjamesjacoby 7 years ago
Pull Requests
- Loading…
Note: See
TracTickets for help on using
tickets.
Replace adjacent duplicate links.