- iOS:
StoredLocalAuthorityCardViewin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/Home/LocalAuthority/StoredLocalAuthorityCardView.swift at 1e520fc1 - iOS:
StoredLocalAuthorityWidgetViewin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/Home/LocalAuthority/StoredLocalAuthorityWidgetView.swift at 1e520fc1 - iOS:
strokes.cardDefaultin govuk-once/govuk-mobile-ios-gov-kit/GovKitUI/Sources/Colors/GOVUKColors+Strokes.swift at ad8590b - Figma: none linked yet
Link card
Makes one destination stand out, on a card of its own that's a link, with its name large and bold, such as the user's council on Home. A description above the name can say what it's for.
GOV.UK app component
More than one
When the user’s area has two councils, the app shows a card for each, under a sentence saying so, with a description on each saying what that council does:
<govuk-app-section-heading action="Edit" name="edit-local-services">Your local services</govuk-app-section-heading>
<govuk-app-text>Services in your area are provided by 2 local councils</govuk-app-text>
<govuk-app-link-card href="https://www.derbyshire.gov.uk" description="County councils are usually responsible for services like education, social care and transport">Derbyshire County Council</govuk-app-link-card>
<govuk-app-link-card href="https://www.derbyshiredales.gov.uk" description="District, borough and city councils are usually responsible for services like rubbish, council tax and housing">Derbyshire Dales District Council</govuk-app-link-card>
Known differences from the app
- In the app, two cards are closer together than other things on Home. In a screen, they’re as far apart as anything else.
- Screen readers hear the card as a link, with its description and name. The app’s VoiceOver reads them separately, the name as a link that opens a web page.
Examples
A council
HTML
<govuk-app-link-card href="https://www.centralbedfordshire.gov.uk">Central Bedfordshire Council</govuk-app-link-card>
With a description
HTML
<govuk-app-link-card href="https://www.derbyshire.gov.uk" description="County councils are usually responsible for services like education, social care and transport">Derbyshire County Council</govuk-app-link-card>
Inputs
| Attribute | Type | Default | Description |
|---|---|---|---|
href |
string |
Where the card goes, such as the council's website. | |
description |
string |
Shown above the name, in grey, saying what it's for, such as County councils are usually responsible for services like education, social care and transport. |
Content
The name of where it goes, as text, such as Central Bedfordshire Council.
Outputs
click: From the link it draws, when it's pressed, before it goes to its href.
Rules
- Use it for one destination worth making stand out, such as the user's own council. For a list of links, use a grouped list.
- Put it under a section heading saying what it is, such as Your local services.
- Keep the name to what the user will recognise, such as the council's own name.
- Give each card a description when there are two or more, saying how they differ, as the app does for a county council and a district council.
When not to use it
| When | Use instead |
|---|---|
| For a list of links | govuk-app-grouped-list-row type="link" |
| For a link within a line of text | govuk-app-link |
| For a screen in the app, among others | govuk-app-grouped-list-row type="navigation" |
The iOS, Android and Figma sources it was built from
Screenshots of the app's own component, to compare the examples with
iOS