Page MenuHomePhabricator

[QA task] Accessibility check for Wikifunctions pages
Closed, ResolvedPublic

Description

Function page

e.g. https://wikifunctions.beta.wmflabs.org/wiki/Z10014
Both tabs - About and Details were checked.

About tab

(1) Critical [role]s are not contained by their required parent element
Failing Elements

  • e.g. "Z1K1": "Z2",

<div class="ace_line" role="option" style="height: 16px; top: 16px;">

Details tab

(1) Critical Form elements do not have associated labels

<input class="cdx-checkbox__input" type="checkbox" value="false">

DONE <input class="ext-wikilambda-pagination__page-selector__input" max="2">`

DONE (2) [aria-hidden="true"] elements contain focusable descendents

Toggle limited content width
<button aria-hidden="true" class="mw-ui-icon mw-ui-icon-element mw-ui-button vector-limited-width-toggle" data-event-name="limited-width-toggle-off">

DONE (3) ARIA input fields do not have accessible names

Approved<div class="ext-wikilambda-chip_text ext-wikilambda-chip_input" role="textbox" contenteditable="false">
Deactivated<div class="ext-wikilambda-chip_text ext-wikilambda-chip_input" role="textbox" contenteditable="false">

DONE (4) Background and foreground colors do not have a sufficient contrast ratio.

Z10014<span class="ext-wikilambda-viewpage-header-zid">
Jump to content Main menu Wikifunctions Create account Personal tools Close Tes…<div class="mw-page-container">
Function (Z8)div class="ext-wikilambda-viewpage-header-type">
Special:SpecialPages-Wikifunctions

DONE

Special:CreateZObject(1) [role]s are not contained by their required parent element<div class="ace_line" role="option" style="height: 16px; top: 16px;">
(2) Form elements do not have associated labelstd > div.ext-wikilambda-zstring > span > input.ext-wikilambda-zstring <input class="ext-wikilambda-zstring">
div > div.ext-wikilambda-json > div.ext-wikilambda-codeEditor > textarea.ace_text-input <textarea class="ace_text-input" wrap="off" autocorrect="off" autocapitalize="off" spellcheck="false" aria-haspopup="false" aria-autocomplete="both" role="textbox" readonly="" style="opacity: 0; font-size: 1px; transform: translate(0px, 0px);">
Special:ListZObjectsByType Serious (1) <dl>'s do not contain only properly-ordered <dt> and <dd> groups, <script>, <template> or <div> elements.Argument declaration (Z17) Argument reference (Z18) Boolean (Z40) Byte (Z80) Ca…<dl>

Event Timeline

Jdforrester-WMF renamed this task from [QA task] Accessibility check for wikifuncitons pages to [QA task] Accessibility check for Wikifunctions pages .Feb 7 2023, 7:19 PM

Re-checked - Function: And (Z10014) (Vector Legacy, Read mode, About tab, only relevant to wikifunction content issues are listed in the table below).

Chrome Lighthouse evaluate the accessibility of the page Function: And (Z10014) as 77% (e.g. Special:RecentChanges page's score - 92%)

axe DevTools reports 23 Critical issues (to compare, e.g. Special:RecentChanges - 1 Critical total)

SeverityIssueCountDetails
CriticalCertain ARIA roles must be contained by particular parents21All issues refer to Current ZObject list e.g. Element Location: .ace_line[role="option"]:nth-child(1) <div class="ace_line" role="option" style="height: 15.9091px; top: 365.909px;">
Screen Shot 2023-07-06 at 10.36.43 AM.png (1,514×520 px, 87 KB)
CriticalARIA roles used must conform to valid values1Element Location: .ace_line[role="option"]:nth-child(1) <div class="ace_line"role="option" style="height: 15.9091px; top: 365.909px;">
Screen Shot 2023-07-06 at 10.41.29 AM.png (1,578×678 px, 84 KB)
CriticalForm elements must have labels1Element Location: textarea <textarea class="ace_text-input" wrap="off" autocorrect="off" autocapitalize="off" spellcheck="false" aria-haspopup="false" aria-autocomplete="both" role="textbox" readonly="" style="opacity: 0; font-size: 1px; transform: translate(0px, 0px);"></textarea>
Screen Shot 2023-07-06 at 10.53.08 AM.png (1,620×694 px, 120 KB)