Opened 6 weeks ago
Closed 5 weeks ago
#66017 closed defect (bug) (fixed)
Links in the Activity Dashboard widget can only be distinguished by color
| Reported by: | afercia | Owned by: | afercia |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.2 |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-patch has-screenshots |
| Cc: | Focuses: | accessibility |
Description
In the Activity Dashboard widget, the links to the comment author and to the post are within a block of text and only use color to be distinguished from normal text.
While other links in the widget, for example the row action links and the links in the footer, can be distinguished as links by the context, the links within a block of text cannot rely on color alone.
This is a specific WCAG violation and, for what is worth, would be reported by any accessibility checker. For example, axe-core reports a violation for the rule link-in-text-block with description: Ensure links are distinguished from surrounding text in a way that does not rely on color.
These links need an additional shape. Normally it's the link underline but it may be any other shape that helps distinguish them as links.
Discovered while testing the experimental PR for #66015.
See screenshots:
- The highlighted links in the first screenshot are not compliant.
- An example of the entire widget with no color, where these links cannot be distinguished from the surrounding text.
Attachments (1)
Change History (7)
This ticket was mentioned in PR #13357 on WordPress/wordpress-develop by @khokansardar.
6 weeks ago
#1
- Keywords has-patch added
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In the Activity dashboard widget, the comment author and post links sit inside a sentence and are distinguished from the surrounding text by color alone, which axe-core reports as a
link-in-text-blockviolation.#dashboard-widgets li aremoves the underline from every link inside a dashboard widget list item, including the two links in the.comment-metasentence. This patch restorestext-decoration: underlinefor links within.comment-meta.The row action and footer links, which context already distinguishes as links, are unchanged.
Trac ticket: https://core.trac.wordpress.org/ticket/66017
## Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5
Used for: Writing PR details. All changes were reviewed and validated by me.