EN, Change language
Englishالعربية
OM-053

Do not use a button for navigation between pages; use a link instead.

The requirement (from the design system site)

Do not use a button for navigation between pages; use a link instead.

Why it matters to users

A screen-reader user expects a button to do something on this page and a link to take them somewhere else. A button that quietly loads a new page leaves them lost, and nobody can open it in a new tab or copy its address.

How to fix it

Replace buttons that move to another page with real links that have an href; if they must look like buttons, use the clickable link variant of gup-button. Then scan again.

How we measure it

Flag button elements whose onclick/data attributes set location or open a URL, and a[role=button] with a real href; a[href] styled as buttons are allowed (the page's 'as clickable link' variant). The denominator is real buttons, header/footer buttons once. Partly measured: we measure what the public pages show of this rule; the rest needs a review.

The rule on the design system site

Related rules

Links, not buttons, to move · Oman OM-053 | xfix