canopy-alert

Implement accessible inline alerts with Canopy's lg-alert component in Angular projects.

23|46|Updated Sep 7, 2020
One-click install
npx skills add https://github.com/Legal-and-General/canopy --skill canopy-alert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: canopy-alert
Source: https://github.com/Legal-and-General/canopy/tree/main/skills/best-practice/alert
Command: npx skills add https://github.com/Legal-and-General/canopy --skill canopy-alert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides developers to implement accessible inline alert messages using Canopy's lg-alert component in Angular projects, ensuring consistent UX and better accessibility.

Core Features & Use Cases

  • Clear guidance on status variants, icon usage, ARIA roles, and when to show inline alerts versus other messaging.
  • Practical examples for form validation, success confirmations, warnings, and errors to improve user experience.
  • Alignment with Canopy design tokens and accessibility standards to ensure inclusive UX across applications.

Quick Start

Tell your AI assistant to implement an info alert next to the email field to indicate validation status.

Frequently Asked Questions about canopy-alert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement accessible inline alert messages in Angular?

To implement accessible inline alert messages in Angular, use the Canopy lg-alert component. It ensures consistent UX by providing clear status variants, icon usage, and ARIA roles for form validation and contextual feedback.

When should I use inline alerts versus other messaging for form validation?

Use inline alerts for form validation when you need to provide immediate, contextual feedback such as success confirmations, warnings, or errors. They apply ARIA roles to ensure accessible status updates directly within the UI.

How do I add an info alert to indicate validation status next to an input field?

To add an info alert for validation status, instruct your AI assistant to implement the Canopy lg-alert component next to the targeted input field. This aligns with Canopy design tokens and accessibility standards.

Does the Canopy alert component support different status variants and icon usage?

Yes, the Canopy alert component supports different status variants and icon usage. It provides practical examples for success confirmations, warnings, and errors to improve user experience and ensure inclusive UX.

What are the limitations of using inline alert messages for status updates?

Inline alert messages are designed for contextual feedback like form validation and status updates. They should not replace broader messaging systems, as their scope is limited to specific UI scenarios within Angular applications.