Skip to content

Skyline

<ns-skyline>

Overview

Global messaging to notify visitors of current, ongoing or upcoming events that they may be relevant to them.

✨ This is an auto-generated AI summary of the ns-skyline's documentation. It may not be accurate. ✨

The ns-skyline displays high-level messages to the user. Its position is always beneath the global navigation and above any content. Use it for notifications of important site-wide (not page-specific) events that may affect the experience of using the British Gas website.

Use ns-skyline for either of these two purposes:

  • Informational Show helpful information the user may want to be made aware of, e.g. upcoming price changes.
  • Warning Warn users of potential upcoming or current issues, e.g. a weather warning.

Examples

Guidance

Standard

Labelled diagram of ns-skyline

The skyline contains the <ns-expander>. We recommend to use 1 expander, with a maximum of 2.

Key

KeyField typeGuidelines
AIconEither an info or warning icon. Relevant to the message.
BHeadingIntroduces the content in the anonymous slot. Clicking the headings reveals the content. The recommended length is between 4 and 12 words, not exceeding 50 characters in total.
CAnonymous slotA single, short paragraph works best. Include emphasis with <strong>, inline links <a>.

Implementation

Placement

The ns-skyline component can only be used as a child of the <main> element.

Specification

Attributes

type
Property
type
Type
string
Default
standard

Slots

SlotPermitted tagsDescription
Anonymous slot<ns-expander> The anonymous slot for one or more expanders.

Last updated: