There are 2 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-6b21b00d-4ca7-4497-9f7d-822743db6027 XWIKI-22746 Open

Images do not have an aria-label in the xwiki-slash dropdown for CKEditor

 
View issue   ยท   Add comment
 

2 updates

 
cid:jira-generated-image-avatar-82b45364-cd52-4c95-bc6e-fcac24b04286 Changes by Charpentier Lucas on 30/Dec/24 15:20
 
Description: Recently, we got a regression on WCAG tests. I suppose it's related to the fix cleanup in XWIKI https://github.com/xwiki/xwiki - 22516 platform/commit/172721962f7b3adaa3dbdb0ae3df8714bddbef90 in here, one rule was removed that allowed the tests to `see` all of these properly hid those empty img elements. AFAICS, the concerned We should hide those img elements have been like this for a while again . While this is a regression on test results, this is not a regression on user experience, hence why I do not set its priority to `regression`.


```
WCAG fails in the test class [org.xwiki.ckeditor.test.ui.AllIT]:
__________
Validation in the test method [paragraphQuickAction_en]
Check for [org.xwiki.test.ui.po.editor.WikiEditPage] at [http://xwikiweb:8080/xwiki/bin/edit/NestedLocalizationIT/paragraphQuickAction_en/WebHome?form_token=SL73qJAAaHkfEyJ7g7x1Vg&editor=wysiwyg].
Found [1] items

1: Images must have alternative text
Description: Ensure <img> elements have alternative text or a role of none or presentation
Help URL: https://dequeuniversity.com/rules/axe/4.10/image-alt?application=axeAPI
Help: Images must have alternative text
Impact: critical
Tags: cat.text-alternatives, wcag2a, wcag111, section508, section508.22.a, TTv5, TT7.a, TT7.b, EN-301-549, EN-9.1.1.1, ACT

HTML element:
<img src="">
Selector: [#cke_141 > .ckeditor-autocomplete-item-head > .ckeditor-autocomplete-item-icon-wrapper > img[src=""]]
Fix any of the following:
  Element does not have an alt attribute
  aria-label attribute does not exist or is empty
  aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
  Element has no title attribute
  Element's default semantics were not overridden with role="none" or role="presentation"

HTML element:
<img src="">
Selector: [#cke_142 > .ckeditor-autocomplete-item-head > .ckeditor-autocomplete-item-icon-wrapper > img[src=""]]
Fix any of the following:
  Element does not have an alt attribute
  aria-label attribute does not exist or is empty
  aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
  Element has no title attribute
  Element's default semantics were not overridden with role="none" or role="presentation"

HTML element:
<img src="">
Selector: [#cke_143 > .ckeditor-autocomplete-item-head > .ckeditor-autocomplete-item-icon-wrapper > img[src=""]]
Fix any of the following:
  Element does not have an alt attribute
  aria-label attribute does not exist or is empty
  aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
  Element has no title attribute
  Element's default semantics were not overridden with role="none" or role="presentation"
[...]

```

There's about 40 of those reports in a row total.
Assignee: Charpentier Lucas
 
 

1 comment

 
cid:jira-generated-image-avatar-82b45364-cd52-4c95-bc6e-fcac24b04286 Charpentier Lucas on 30/Dec/24 15:25
 

Started a PR at https://github.com/xwiki/xwiki-platform/pull/3784