Footer
The last thing on every page: who the site belongs to, how to reach them, and the legal links. It is drawn from the site's config, so no page writes its own.
Show code
// somnia.config.mjs: this site's, which draws the footer below
export default {
footerName: 'Media Dreams Ltd',
email: 'hello@mediadreams.co.uk',
address: 'Dunsford, Exeter EX6 7DB',
footerLinks: [
{ href: '/legal/privacy/', label: 'Privacy' },
{ href: '/legal/cookies/', label: 'Cookies' },
{ href: '/legal/terms/', label: 'Terms' },
{ href: '/legal/accessibility/', label: 'Accessibility' },
],
footerKeyLinks: [{ href: '/somnia/', label: 'Design system', icon: 'design-system' }],
// A footer can also carry (this site's doesn't):
// phone: ['+1 284 000 0000'],
// social: [{ network: 'instagram', href: 'https://www.instagram.com/…' }],
// memberships: [{ name: 'CYBA', logo: '/memberships/cyba.svg', href: 'https://…' }],
// credit: 'Website by <a href="https://mediadreams.co.uk">Media Dreams</a>',
}; Anatomy
| Part | From the config | Notes |
|---|---|---|
| Copyright line | footerName | The year is the build's, and moves on by itself if the site isn't rebuilt after New Year. |
| Address, phone, hours | address, phone, hours | phone may be a list; each number is a tap-to-call link. |
| Legal links | footerLinks | A link to a legal page hidden from the live site is left out. |
| Cookie settings | analytics.ga | Only on a site with Google Analytics: reopens the cookie banner. |
| Key links | footerKeyLinks | One or two destinations worth standing out, as small outlined pills. |
| Social icons | social | Facebook, Instagram, LinkedIn, X, YouTube, TikTok: round 40px buttons. |
| Memberships | memberships | Small logos on light tiles on a line of their own, "Members of". |
| Credit | credit | Who made the site, on its own line. The only place a client's site names the studio. |
Layout
- A hairline above it, then one row: the copyright line at the left, links and icons at the right. Memberships and the credit each take a line of their own beneath.
- On a phone the parts stack, the address, phone numbers and hours each on their own line, and the type is a little larger.
- Every page ends the same distance above the footer's line (
page.end, 64px). Pages set no space of their own there. - On a site with a chat button the footer leaves room under itself, so the button never sits over its links.
- The footer is quiet: the softer text colour at 13.5px, with links turning to the text colour on hover.
On paper
- A compact footer with a rule above it and a contact line that isn't shown on screen: email, phone and the site's address.
- Links, buttons and social icons are left off. Membership logos print at full strength.
Before launch
A site showing only a holding page before it launches (holding in its config) gets a plain footer on the pages it keeps: the copyright line and those pages' links, nothing else.
The year
On a site with the easter egg turned on, the year hides it: the pointer turns into an egg over it. See the hidden dot.
Accessibility
What it does for you
- The page’s
footerlandmark, the same on every page. - Every social link says where it goes and that it opens a new tab; the icon is decoration.
- Membership logos carry their organisation’s name.
- Social icons are 40px buttons; links are spaced to be tapped.
- Contact details in the same place on every page.
What you need to do
- Write link words that say where they go ("Privacy", not "Read more").
- Give each membership its real name.
- Keep it short: it is read on every page.
Keyboard
| Key | What it does |
|---|---|
| Tab | Moves through its links and buttons in reading order. |
| Enter | Follows a link, or presses a button (Cookie settings). |
What a screen reader is told
- The footer landmark (
contentinfo), then each link by its words. - A social icon: a link named, for example, "Media Dreams on LinkedIn (opens in a new tab)".
This is what the browser reports to assistive technology. What each screen reader then says varies, and has not been listened to yet.
WCAG 2.2
| Criterion | Level | How this meets it |
|---|---|---|
| 2.4.1 Bypass Blocks | A | A landmark a screen reader can jump to. |
| 2.4.4 Link Purpose (In Context) | A | Links are named by their words; icons by a label. |
| 2.5.8 Target Size (Minimum) | AA | Social icons are 40px; text links pass by the space around them. |
| 3.2.3 Consistent Navigation | AA | The same links in the same order on every page. |
| 3.2.6 Consistent Help | A | Contact details are in the same place on every page. |
The criteria this component has a part in. A page that uses it still has to meet the rest.
Checked
| Check | How | Result |
|---|---|---|
| Automated (axe-core) | WCAG 2.0, 2.1 and 2.2 rules at A and AA, the page in light and in dark | Passed Nothing found, light or dark |
| Narrow screen | No sideways scrolling at 320px wide (WCAG 1.4.10) | Passed No sideways scrolling |
| Keyboard and what the browser reports | Real key presses on the live example, and the role, name and state given to assistive technology | Passed 4 of 4 checks pass |
| On paper | Somnia’s print check: no overlaps, stranded headings or controls on the page | Passed No faults on 5 sheets |
| Screen reader | Listened to by a person, in VoiceOver and NVDA | Not yet Not yet checked by a person |
The 4 checks made with the keyboard, on the example at the top of this page:
- Passed The page has one footer landmark, for a screen reader to jump to
- Passed Every link and button in it has a name
- Passed Each social link says where it goes and that it opens a new tab
- Passed Tab goes through it in reading order
Run by script on against Somnia DS 1.89.0, in Chromium with axe-core 4.14.0. How these checks work, and every component's results.
Not yet checked
- How it sounds in a screen reader (VoiceOver, NVDA, TalkBack) has not been checked by a person. The roles, names and states the browser reports are checked by script; what is actually spoken is not.
- Text links in the footer are smaller than 24px high and pass the target-size check by spacing. Not checked on a real phone with large text set.
Evidence
Where it's used
| Where | For |
|---|---|
| Every page of every site | mediadreams.co.uk, Headland Yachting, the starter that new sites are copied from. |
What we saw, and what changed
| When | What we saw | What changed |
|---|---|---|
| Search took Client login’s place in the header. | Client login moved to the footer, as a small outlined pill (1.4.0). | |
| Headland needed more than one phone number, and its trade memberships shown. | phone may be a list; memberships shows small logos on a line of their own (1.28.0). | |
| Cookie settings was in the header’s settings menu. | It moved to the footer, with the other legal links (1.65.0). | |
| Pages ended different distances above the footer. | Every page ends 64px above the footer’s line, checked on every pull request. | |
| An outside review found that Client login asked for an email and a password and could never let anyone in: there were no accounts behind it. | Client login and its dialog were taken out of the footer and out of Somnia (1.77.1). | |
| The proof script found Media Dreams’ own LinkedIn link didn’t say it opens a new tab: a label written for the site replaced the one that did. | Every social link says so, whatever label a site gives it. |
From building and using it on real sites, each entry taken from the changelog or the build's own notes. This is observation by the studio and its clients, not research sessions with users.
What it rests on
- ARIA Authoring Practices: Landmarks: One
contentinfolandmark a page, for information about the site.
What we don't know yet
- The independent review (November 2026) suggested moving the header’s appearance settings to the footer on client sites. Not decided.