Ensure Modals follow the Platforms Code Design System
Modals are for confirmation, feedback and important alerts, not for detailed data entry, which belongs in the form template. A twelve-field registration form inside a modal cannot be scrolled on a phone and loses everything typed if it is dismissed.
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
Only a blocking window counts as a modal (aria-modal, dialog, or an overlay covering the screen). The modal 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. Every modal in the page markup, open or closed, is counted for its input fields.
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 siteAll 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.
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.