GC Design System Components
Home Start to use Page templates overview Basic page Components overview Breadcrumbs Button Card Checkboxes Container Date input Date modified Details Error message Error summary Fieldset File uploader Footer Grid Header Heading Icon Input Language toggle Link Notice Pagination Radios Screenreader-only Search Select Side navigation Signature Stepper Text Textarea Theme and topic menu Top navigation CSS shortcuts overview Reset styles Responsive layout State Box sizing Container sizing Display Overflow Position Visibility Font Font family Font size Font style Font weight Line height Link colour Link size Link text decoration List style Text align Text colour Text overflow Text transform Word break Margin Padding Align content Align items Align self Flex Flex direction Flex grow Flex shrink Flex wrap Gap Grid columns Grid rows Justify content Justify items Justify self Order Place content Place items Place self Background colour Border colour Border radius Border style Border width Icon names Icon size Image Cursor Pointer events Transition Styles overview Design tokens Colour tokens Spacing tokens Typography tokens Contact us Get involved Find a demo

Notice
<gcds-notice>

Also called: Contextual alert.

The notice is a short, prominent message that’s part of the page content.

Notice component preview

Notice anatomy

  1. Guide line indicates visually the notice’s start and end.
  2. Icon indicates the type of notice.
  3. Title specifies the notice topic.
  4. Message provides the notice details.
A notice anatomy containing the guide line and the icon on the left of the title in bold and the message.

Design and accessibility

Choose the appropriate notice type

Refer to the use case tab for guidelines on when to use each notice type.

Write concise and descriptive headings and messages

  • Write a meaningful heading that’s short and simple to highlight the goal of the notice.
  • In the heading, use words like “warning” and “success” that match the meaning conveyed by the icon and colour of the notice type you selected.
  • Craft the message (below the heading) to be brief and impactful, ideally within three sentences.
  • Save the details for the main content area of a page. The notice is meant to attract attention and create an information trail for anyone who needs to know more.
  • Use links to connect to additional details for a person who wants to read more.
  • Opt to create a dedicated page for more detailed content and use a short message in a notice to draw interested people to that page.
  • Avoid long notices. They can be distracting and frustrating.

Use notices sparingly to avoid visual fatigue

  • Limit the number of notices on a page. People become less receptive to notices and warning messages the more often they encounter them.
  • Make sure to remove notices once they’ve served their purpose.

Place notices where you’d place a paragraph

  • Add a notice where you’d add an important paragraph (or section) on the page.
  • Consider placing the notice at the top of the page or content section to avoid it being overlooked.
  • Avoid using a notice within a form component, like an input or a checkbox.

Help us improve

Have questions or a request? Give feedback on our contact form.

Something's wrong? Raise it through GitHub with an account. You'll have access to the team's direct responses, progress made on your issue, and issues raised by others.

Give feedback Report an issue on GitHub
2025-03-10