# Pattern top

Pixel-style band of squares that steps one section into the next, placed at the top of a section. Deprecated: scheduled for removal; do not add new ones.

## Screenshots

| Variant | Preview |
|---------|---------|
| Default | ![Default](../screenshots/components/pattern-top-default.png) |
| Navy | ![Navy](../screenshots/components/pattern-top-navy.png) |

Note: the screenshot is blank because the pattern borrows its colours from neighbouring blocks, which the showcase does not provide.

## What it looks like

A decorative band four squares tall made of scattered 64px squares in the colour of the block above, set against a field in the colour of the block below. It sits between the two blocks to give a pixelated edge.

## Typography

No text. The block is decorative and hidden from screen readers.

## Colours

The band takes the `backgroundColour` of the neighbouring block it runs into; the field takes the colour of the block on the other side. If a neighbour has no colour, the band uses the footer colour and the field is transparent (or uses this entry's own `backgroundColour`). `textColour` has no effect.

**Valid values for `backgroundColour`:** Navy, Dark Slate, Slate, Sea Glass, Cornflower, Ether, Mist, White, Graphite, Ink, Sky.

## Used fields

| Field | Type | Effect when set | Effect when empty/removed |
|-------|------|-----------------|---------------------------|
| `visual` | Media | Required for the block to draw; its image is not shown | Nothing is drawn |
| `backgroundColour` | Symbol | Fallback field colour when the neighbouring block has none | Transparent |
| `textColour` | Symbol | No visible effect | No visible effect |
| `anchor` | Symbol | In-page link target | No anchor |
| `cmsLabel` | Symbol | Internal label; "Archive pattern top" or "Archive pattern bottom" also selects the shape | No visible effect |
| `componentType` | Symbol | Selects the shape | N/A |
| `id` | Symbol | Entry id for live preview | No visible effect |

## Behaviour

- **Neighbours:** colours come from the block before and after, so moving the block changes how it looks.
- **Height:** 256px (four squares) tall.
- **Cell size:** squares are 64px.

## Impact of content changes

| Change | Result |
|--------|--------|
| Remove `visual` | Nothing is drawn |
| Change a neighbour's `backgroundColour` | The band or field recolours to match |
| Move to the end of the page | Band takes the footer colour |
