Canopy Flag Icon — Best Practices

SkillDev tools

Best practices for the Canopy Flag Icon component. Trigger whenever lg-flag-icon, LgFlagIconComponent, or flag icon imports appear in an Angular project using Canopy.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Canopy Flag Icon — Best Practices skill

What this skill tells your AI

The instructions your AI receives, as published by legal-and-general/canopy in skills/best-practice/flag-icon/SKILL.md and read by ahel’s review.

This skill provides usage guidance, dos and don'ts, and input reference for the Canopy lg-flag-icon component from @legal-and-general/canopy.

Apply this skill whenever you use lg-flag-icon or import LgFlagIconComponent in an Angular project.


Import

import { LgFlagIconComponent } from '@legal-and-general/canopy';

Add to your standalone component's imports array or Angular module.


Basic Usage

<lg-flag-icon name="gb"></lg-flag-icon>

Inputs

NameDescriptionTypeDefaultRequired
nameThe name of the flag iconstringundefinedYes

Dos and Don'ts

Do

  1. Do use the global flag for regions where a single country flag is ambiguous, e.g. "Middle East".
  2. Do always pair the flag icon with the country or region name as visible text.
  3. Do ensure sufficient contrast between the flag and its surrounding background.

Don't

  1. Don't use flag icons as a replacement for language labels where ambiguity is possible — a flag represents a country, not necessarily a language.

Related

  • Use lg-icon for UI icons — see the UI icon skill.
  • Use lg-pictogram for illustrative pictograms.

Signals

GitHub stars
23
Forks
46
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
canopy-flag-icon
Source
github.com/legal-and-general/canopy