canopy-primary-message

Guide Canopy Primary Message component usage in Angular projects for accessible page-level messages.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides best-practice guidance for implementing Canopy's Primary Message component within Angular projects, ensuring consistent messaging UI and accessibility.

Core Features & Use Cases

  • Clear guidance on when to use the primary message (empty states, confirmations, errors, information banners).
  • Do's and Don'ts to maintain a clean, accessible, and brand-consistent UI.
  • Real-world example: integrating a concise success banner with a clear CTA in a page that shows post-action status.

Quick Start

Place the Canopy primary message component as the sole content in its container and follow the recommended structure to display a title, description, and optional action.

Frequently Asked Questions about canopy-primary-message

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

FAQPage Schema
How do I display accessible page-level messages in Angular using Canopy?

To display accessible page-level messages in Angular, use the Canopy LgPrimaryMessageComponent as the sole content within its container, utilizing optional title and description subcomponents in a linear layout for optimal screen reader support.

When should I use a primary message component for Angular UI states?

Use a primary message component for Angular UI states such as full-page confirmations, empty states, error pages, and success screens to ensure consistent messaging UI and accessibility across enterprise applications.

What are the do's and don'ts for Canopy primary message accessibility?

For Canopy primary message accessibility, do keep the component as the sole content in its container and use a linear layout with optional title and description subcomponents. Do not include other content within the same container.

Can I add a call-to-action to an Angular success screen with Canopy?

Yes, you can add a call-to-action to an Angular success screen using Canopy by following the recommended structure to display a title, description, and optional action within the primary message component.

Does the Canopy primary message component work for empty states and error pages?

Yes, the Canopy primary message component works for empty states and error pages, providing clear guidance and maintaining a clean, brand-consistent UI through its linear, accessible layout structure.

Are there limitations when placing content inside the Canopy primary message container?

The primary limitation is that the Canopy primary message must be the sole content in its container, meaning you cannot place other elements or components alongside it within the same wrapper element.