canopy-data-point

Implement Canopy Data Point components in Angular with required headingLevel and accessibility standards.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guidance for implementing Canopy Data Point components to display labelled data values, key-value pairs, or summary data lists in Angular projects, ensuring consistent usage and accessibility.

Core Features & Use Cases

  • Usage guidance and input reference for the Canopy lg-data-point component from '@legal-and-general/canopy'.
  • Encourages best practices for composition with LgDataPointLabelComponent, LgDataPointValueComponent, and LgDataPointListComponent.
  • Defines constraints such as required headingLevel on the label and alignment with Canopy styling guidelines.

Quick Start

Create an lg-data-point with an lg-data-point-label and an lg-data-point-value in your Angular template.

Frequently Asked Questions about canopy-data-point

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

FAQPage Schema
How do I display labelled data values or key-value pairs in an Angular application?

To display labelled data values in Angular, use the Canopy lg-data-point component composed with lg-data-point-label and lg-data-point-value elements to render accessible key-value pairs. This enforces consistent Canopy design and accessibility standards across enterprise UIs.

What is the best way to ensure accessibility for data point labels in Angular UI components?

Ensuring accessibility for data point labels requires setting a mandatory headingLevel on the lg-data-point-label component. This configures the Canopy UI component to align with enterprise accessibility standards for key-value data rendering.

Can I use the Canopy data point component to render summary data lists?

Yes, you can use the Canopy data point component to render summary data lists by composing multiple lg-data-point elements within an lg-data-point-list component. This structures key-value pairs consistently across enterprise Angular applications.

Do I need specific sub-components to build a Canopy data point in Angular?

Yes, building a Canopy data point requires using LgDataPointComponent alongside LgDataPointLabelComponent and LgDataPointValueComponent. This composition enforces proper structure and accessibility constraints for displaying labelled data values.

Why does my Canopy data point label require a heading level constraint?

The Canopy data point label requires a headingLevel constraint to enforce semantic HTML structure and meet accessibility standards. This ensures screen readers correctly interpret the relationship between labels and values in key-value pairs.

Are there limitations when using Canopy data point components for Angular UI development?

Limitations include strict composition requirements where labels must use LgDataPointLabelComponent with a mandated headingLevel, and values must use LgDataPointValueComponent. Deviating from this structure breaks Canopy design and accessibility alignment.