Language selection

Search


Contextual Sign in button: Canada.ca design system

  • Last updated: 2023-06-26

The Sign in button is an optional header element that directs people to government accounts that require authentication. It is a contextual and persistent call to action within a group of related pages.

Sign in - large screen
Sign in header for large screens
Sign in - small screen
Sign in header for small screens

On this page

When to use

Add the Sign in button when signing in to an account is a key task within a series of pages. This includes:

You can use the Sign in button in addition to a supertask button on the same page. If you have an existing super task button, don't remove it. Instead, add the Sign in button. You may see changes in use over time in your analytics that show that you can remove the super task button.

What to avoid

Content and design

Find content and design specifications and visual examples.

Content specifications

Use “Sign in” as the label

Interactions

Link the Sign in button directly to the page where you begin your sign-in process, or to an account-chooser page with the different accounts you can sign in to.

Design specifications

Button structure

Default state

Hover state

Visual examples

Contextual Sign in button - large screen
Sign in header for large screens
Image description: Contextual Sign in button - large screen

Standard header of an English Canada.ca page with the Sign in button highlighted

Contextual Sign in button - small screen
Sign in header for small screens
Image description: Contextual Sign in button - small screen

Standard header of an English Canada.ca page with the Sign in button highlighted

How to implement

Find working examples and code for implementing the Sign in button.

GCweb (WET) theme implementation reference

The implementation reference includes how to configure each element of the header.

Implementations

Determine what best suits the type of page you're creating.

GC-AEM

For the Government of Canada Adobe Experience Manager (AEM):

CDTS

For the Centrally Deployed Templates Solution (CDTS):

Drupal WxT

For Drupal WxT:

Research and rationale

We introduced the contextual sign in button to improve findability for this top task.

Latest changes

Updated the guidance to include advice on what to avoid, content and design specifications, visual examples, implementation guidance, and policy rationale
Expanded Sign in button guidance

Page details

Date modified: