EN, Change language
Englishالعربية
BH-009

The header offers a light and dark mode switch.

The requirement

The header offers a light and dark mode switch.

Why it matters to users

Some visitors find a bright white page tiring, especially people sensitive to light and anyone reading on a phone at night. Without a dark mode switch, long reading such as service terms or a law becomes hard for them.

How to fix it

Add the govbh-head__darkmode switch from the official code to the header, or the official govbh-accessibility-widget (a contrast switch alone is not enough), build your colours on the --bh-* variables so they all change together, and check contrast in both modes. Then scan again.

How we measure it

Dark-mode switch in the header (govbh-head__darkmode, or a control whose accessible name says dark or night mode), or the official accessibility widget; a contrast switch alone counts half.

Its official source

Related rules

Light and dark mode switch · Bahrain BH-009 | xfix