From 113a906dce3c337676fa93d558716ba67a3ec800 Mon Sep 17 00:00:00 2001 From: Khokan Sardar Date: Tue, 1 Sep 2026 21:16:35 +0530 Subject: [PATCH 1/2] Administration: Underline the in-text links in the Activity widget. In the Recent Comments section of the Activity dashboard widget, the comment author and post links sit inside a sentence and were distinguished from the surrounding text by color alone, which fails WCAG SC 1.4.1 Use of Color. `#dashboard-widgets li a` removes the underline from every link in a dashboard widget list item. Restore it for the links inside `.comment-meta`, leaving the row action and footer links, which are distinguishable by context, unchanged. Fixes #66017. --- src/wp-admin/css/dashboard.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css index 7b0d0fe01c493..70010cfc4cc9a 100644 --- a/src/wp-admin/css/dashboard.css +++ b/src/wp-admin/css/dashboard.css @@ -1123,6 +1123,10 @@ body #dashboard-widgets .postbox form .submit { color: #646970; } +#latest-comments #the-comment-list .comment-meta a { + text-decoration: underline; +} + #latest-comments #the-comment-list .comment-meta cite { font-style: normal; font-weight: 400; From 0891dd26acc839adffd703b00dade35c5dc2c071 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Tue, 8 Sep 2026 17:18:51 +0200 Subject: [PATCH 2/2] Use :not() instead of introducing new selectors. --- src/wp-admin/css/dashboard.css | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css index 70010cfc4cc9a..09f49cbe4daf9 100644 --- a/src/wp-admin/css/dashboard.css +++ b/src/wp-admin/css/dashboard.css @@ -1066,7 +1066,7 @@ body #dashboard-widgets .postbox form .submit { min-width: 0; } -#dashboard-widgets li a, +#dashboard-widgets li:not(.activity-block li):not(.comment) a, #dashboard-widgets .button-link, .community-events-footer a { text-decoration: none; @@ -1123,10 +1123,6 @@ body #dashboard-widgets .postbox form .submit { color: #646970; } -#latest-comments #the-comment-list .comment-meta a { - text-decoration: underline; -} - #latest-comments #the-comment-list .comment-meta cite { font-style: normal; font-weight: 400;