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

Ensure Checkbox follows the Platforms Code Design System

The checkbox must be a real semantic control bound to its label, with a touch target of at least 44 pixels, and must support the indeterminate state. A “select all” without it shows a partly-selected group as fully selected.

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 component’s applied background colour, border colour and padding are read from the page and compared with the approved values, and a component that matches without any library marker is capped at partial application. Its interactive states are not examined. Each visible field is also checked for a label: a label element, aria-label or aria-labelledby. The label is part of the component, and placeholder text is not a label. A field that is not shown at load has its label read from the markup alone, at lower confidence. A component not seen on the public pages read, present in the markup but not shown, or shown with no value to compare is reported as not measured and not counted: its absence from the sample does not mean the platform has none.

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 21 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.

Checkbox: Platforms Code criterion 21 | xfix