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

The hero banner resizes across screens and its text keeps high contrast over the image.

The requirement

The hero banner resizes across screens and its text keeps high contrast over the image.

Why it matters to users

On a phone the hero text can be cut off or vanish over a light part of the photo, so the citizen misses the site's most important message. A person with low vision cannot pick out words on a busy image with nothing dark behind them.

How to fix it

Use the govbh-heroslider component, which adapts at 375, 768 and 1366px, and put a dark overlay or a --bh-brand band behind the text so it reaches at least 4.5:1 contrast. Then scan again.

How we measure it

Hero present at 375, 768 and 1366px without overflow; an overlay or solid band behind its text. Partly measured: we measure what the public pages show of this rule; the rest needs a review.

Its official source

Related rules

Responsive, readable hero · Bahrain BH-031 | xfix