This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-bc71d1c1-72ea-46d5-aed8-ebac97b7dc7b XWIKI-23813 Open

Link missing contrast in search result page

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-f41fe026-3f79-4bce-862c-e9dd91db6cd9 Charpentier Lucas created this issue on 10/Dec/25 16:26
 
Summary: Link missing contrast in search result page
Issue Type: cid:jira-generated-image-avatar-bc71d1c1-72ea-46d5-aed8-ebac97b7dc7b Bug
Affects Versions: 17.10.0
Assignee: Unassigned
Attachments: image-2025-12-10-16-24-14-995.png
Components: Search - Solr
Created: 10/Dec/25 16:26
Labels: wcag
Priority: cid:jira-generated-image-static-major-ae213aaa-09cc-429c-9a4b-0715bc6e43eb Major
Reporter: Charpentier Lucas
Description:

Reported from CI:

WCAG warnings in the test class [org.xwiki.search.test.ui.AllIT]:
__________
Validation in the test method [searchLimit]
Check for [org.xwiki.search.test.po.SolrSearchPage] at [http://xwikiweb:8080/xwiki/bin/view/Main/SolrSearch?highlight=true&facet=true&r=1&f_type=DOCUMENT&f_locale=en&f_locale=&text=Content+of+Page&rows=20].
Found [1] items

1: Links must be distinguishable without relying on color
Description: Ensure links are distinguished from surrounding text in a way that does not rely on color
Help URL: https://dequeuniversity.com/rules/axe/4.11/link-in-text-block?application=axeAPI
Help: Links must be distinguishable without relying on color
Impact: serious
Tags: cat.color, wcag2a, wcag141, TTv5, TT13.a, EN-301-549, EN-9.1.4.1, RGAAv4, RGAA-10.6.1

HTML element: 
	<a class="user-name" href="/xwiki/bin/view/XWiki/superadmin"><img class="user-avatar" src="/xwiki/bin/skin/resources/icons/xwiki/noavatar.png?cache-version=1763562508000" alt="">superadmin</a>
Selector: [.search-result.type-document:nth-child(1) > .search-result-author > .user[data-reference="xwiki:XWiki.superadmin"] > .user-name]
Fix any of the following:
  The link has insufficient color contrast of 1.41:1 with the surrounding text. (Minimum contrast is 3:1, link text: #2f70a7, surrounding text: #555555)
  The link has no styling (such as underline) to distinguish it from the surrounding text

_thumb_44444.png

I'm not sure how I didn't catch that myself earlier :/
The style for this element is in a SSX in the document `SolrSearch.xml`

 
 

1 update

 
cid:jira-generated-image-avatar-f41fe026-3f79-4bce-862c-e9dd91db6cd9 Changes by Charpentier Lucas on 10/Dec/25 16:27
 
Description: Reported from CI:


{noformat}
WCAG warnings in the test class [org.xwiki.search.test.ui.AllIT]:
__________
Validation in the test method [searchLimit]
Check for [org.xwiki.search.test.po.SolrSearchPage] at [http://xwikiweb:8080/xwiki/bin/view/Main/SolrSearch?highlight=true&facet=true&r=1&f_type=DOCUMENT&f_locale=en&f_locale=&text=Content+of+Page&rows=20].
Found [1] items

1: Links must be distinguishable without relying on color
Description: Ensure links are distinguished from surrounding text in a way that does not rely on color
Help URL: https://dequeuniversity.com/rules/axe/4.11/link-in-text-block?application=axeAPI
Help: Links must be distinguishable without relying on color
Impact: serious
Tags: cat.color, wcag2a, wcag141, TTv5, TT13.a, EN-301-549, EN-9.1.4.1, RGAAv4, RGAA-10.6.1

HTML element:
<a class="user-name" href="/xwiki/bin/view/XWiki/superadmin"><img class="user-avatar" src="/xwiki/bin/skin/resources/icons/xwiki/noavatar.png?cache-version=1763562508000" alt="">superadmin</a>
Selector: [.search-result.type-document:nth-child(1) > .search-result-author > .user[data-reference="xwiki:XWiki.superadmin"] > .user-name]
Fix any of the following:
  The link has insufficient color contrast of 1.41:1 with the surrounding text. (Minimum contrast is 3:1, link text: #2f70a7, surrounding text: #555555)
  The link has no styling (such as underline) to distinguish it from the surrounding text
{noformat}


!image-2025-12-10-16-24-14-995.png|thumbnail!

I'm not sure how I didn't catch that myself earlier :/
Maybe a local change I forgot to move into my PR.

The style for this element is in a SSX in the document `SolrSearch.xml`