Quick action

From Legal-and-General/canopy · View interactive version

Quick action is an AI agent skill from the GitHub repository Legal-and-General/canopy. Removal notice for the Canopy Quick Action directive. Trigger whenever lg-quick-action, LgQuickActionComponent, or related imports appear in an Angular project using Canopy.

How to use this skill

Skill file

Canopy Quick Action - REMOVED

LgQuickActionComponent and the lg-quick-action directive have been removed from Canopy's public API.

Replace quick actions with supported button or link patterns.


What to Remove

Remove quick action imports:

// Remove:
import { LgQuickActionComponent } from '@legal-and-general/canopy';

Remove quick action template usage:

<!-- Remove: -->
<button lg-quick-action>
  <lg-icon name="information-filled" />
  Find out more
</button>

What to Replace It With

  1. Action in context: use lg-button with priority="link".
  2. Navigation between pages/routes: use the Link component.
  3. Primary/secondary actions: use standard button priorities.
<!-- Recommended replacement for contextual actions -->
<button lg-button type="button" priority="link">
  <lg-icon name="information-filled" />
  Find out more
</button>

See also: button, link.


Don't

  1. Don't use lg-quick-action in new templates.
  2. Don't import LgQuickActionComponent in standalone component imports.
  3. Don't recreate quick action styling with ad-hoc CSS; use existing button/link patterns.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.