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

Icon
<gcds-icon>

Also called: symbol, glyph, graphic.

An icon is a symbol that visually represents an action or idea.

Icon component preview

Icon anatomy

  1. Icon is a symbol that visually represents an object, action, or idea.
  2. Accompanying text is a word or phrase that gives additional context.
An info icon next to the words “Accompanying text”. The text and icon are the same colour and size.

Design and accessibility for icon

Use icon intentionally

  • Use an icon to assist people with site functionality.
  • Use sparingly since too many icons create unnecessary distractions and reduce their effectiveness.

Use icon with text

  • Pair an icon with accompanying text to reduce ambiguity.
  • A universally understood icon can stand alone, like a search icon.
  • Place an icon before text unless indicating secondary information, like dropdown arrows.

Write a meaningful description

  • Use unique and specific accompanying text to prevent repetition for screen readers.
  • Use alt-text when there’s no accompanying text.

Match icon and text size

  • Match icon size to accompanying text, like using a small icon with small text.
  • Align the icon so it’s the same height as the accompanying text.
  • Use our sizing scale to ensure the icon size matches the text size.
Text small
Text
H6
H5
H4
H3
H2
H1

Choose an accessible colour

  • Use a solid colour that matches your accompanying text.
  • Check that the colour meets or exceeds WCAG 2.1 AA.

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-04-15