EN, Change language
Englishالعربية
Criterion 12 · ComponentsMachine-measured

Ensure Buttons follow the Platforms Code Design System

Buttons must be called from the library with their approved height, radius, fill and padding, and must carry all six interactive states. The official heights are 24, 32 and 40px on desktop and 44px on mobile, at a 4px radius with 8, 12 or 16px of horizontal padding. The state most often lost is the focus indicator, removed because it “spoils the look”, which puts the primary action of a page out of reach of anyone not using a mouse. Its official treatment is a 2px #161616 ring, inverting to #FFFFFF on coloured backgrounds.

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 button 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. Each button’s accessible name is checked too: visible text, or an aria-label where the button has none.

The official text and its checkpoints

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

This criterion on the official Platforms Code site

All 2 checkpoints, in Arabic

This criterion’s 2 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 12 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.

Buttons: Platforms Code criterion 12 | xfix