EN, Change language
Englishالعربية
Criterion 15 · ComponentsMachine-measured (structural)

Ensure Accordions follow the Platforms Code Design System

The accordion must match the approved design and announce its expanded and collapsed state programmatically, not merely by rotating an icon. A screen reader that cannot tell the panel opened has not been told.

It is one of the primary criteria in the components group of the Saudi Platforms Code, issued by the Digital Government Authority.

How xfix gov measures this criterion

The accordion elements a visitor can see, page content first, are read for their colour, border, inner spacing and corner radius, and compared with the approved values after duplicates across pages are removed; height and full shape are not measured. An element that matches without a library marker is capped at partial application, and one that shows only after interaction is not measured or counted. The focused state is read by moving focus to the element as the Tab key would, then back; hover rules are read from the style sheets; pressed and disabled are not measured. The expanded or collapsed state is read from aria-expanded at load and compared with whether the panel shows.

The official text and its checkpoints

This criterion rests on 3 checkpoints published in the Platforms Code, and they are the reference when judging it.

This criterion on the official Platforms Code site

All 3 checkpoints, in Arabic

This criterion’s 3 checkpoints are not written in English yet. The Arabic page carries all of them in full, each with its own answer, what passes and fails, how it is measured, and how it is repaired.

Criterion 15 in Arabic, with every checkpoint

Related criteria

xfix gov is an independent tool, not part of the Digital Government Authority, and what it produces is an indicative estimate, not the Platforms Code Application Certificate. The limits of this tool.

Accordion: Platforms Code criterion 15 | xfix