Ensure Content Switcher follows the Platforms Code Design System
The content switcher presents the same data two ways; it is not navigation between two different sections. Its selected state must be readable programmatically, and the content beneath it must genuinely change rather than the styling.
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
A content switcher is any choice group, or a tab bar of two to four options, in the content. The content switcher 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 selected option is read from aria-selected or aria-checked.
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 siteAll 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.
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.