Opened 3 years ago
Closed 3 years ago
#58430 closed enhancement (invalid)
Title or aria-label missing in wp_list_categories
| Reported by: | rtomo | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Taxonomy | Version: | 6.2.2 |
| Severity: | minor | Keywords: | reporter-feedback |
| Cc: | Focuses: | accessibility |
Description
Hi,
I think for the accesibility, need to add title or aria-label value to the wp_list_categories() with the category name.
Change History (7)
#1
follow-up:
↓ 2
@
3 years ago
- Summary Title or aria-label midding in wp_list_categories → Title or aria-label missing in wp_list_categories
#3
follow-up:
↓ 4
@
3 years ago
- Component General → Taxonomy
The category name is already the visible text for each link, which is more accessible than title or aria-label attributes.
#4
in reply to: ↑ 3
@
3 years ago
Replying to sabernhardt:
The category name is already the visible text for each link, which is more accessible than
titleoraria-labelattributes.
Yes, but some checker think it's bug. PageInsight or etc. checker.
When that's not problem for accesibility close that ticket.
#5
follow-up:
↓ 6
@
3 years ago
- Keywords reporter-feedback added
Can you provide details of the accessibility checking errors you're getting? It may be specific to a particular usage case.
#6
in reply to: ↑ 5
@
3 years ago
Replying to joedolson:
Can you provide details of the accessibility checking errors you're getting? It may be specific to a particular usage case.
Hi,
When i'm use the wp_list_categories(), in the ul/li list items content is:
<li class="cat-item cat-item-ID"><a href="catslug">catname</a> </li>
And the better is:
<li class="cat-item cat-item-ID"><a arial-label="catname" href="catslug">catname</a> </li>
#7
@
3 years ago
- Milestone Awaiting Review
- Resolution → invalid
- Status new → closed
OK. That would not be an improvement; the aria-label in that example is a duplicate of the existing accessible name, and is unnecessary.
An aria-label should only be used if there is no visible accessible name present, and that doesn't apply in this case.
I'm going to close this as invalid; feel free to reopen if you wish to have further discussion.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Replying to mukesh27:
Thank you, i missed the button. :)