Menu

Definition list

Definition lists are pairs of related information displayed in a list.

Minimum requirements
  • 1 item - composed of:
    • Term(s) (dt)
    • Details (dd)

Quick access

Advanced settings

Presets

?

Variations

?

Modifiers

?

Lorem ipsum dolor sit amet
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Lorem ipsum dolor sit amet
Lorem ipsum
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

HTML
Copy to clipboard

Component used in

Page template

Details

Usage

The definition list component is used to display pairs of connected information in a list. For example, a list of press officers and their contact details. With the names in the term field (dt), and their email and phone number in the description (dd).

Guidelines

  1. Each item should always feature two tags (dt and dd), even if there's no data for one of them
  2. There are no character limits, but the term (dt) should be as short as possible. The definition (dd) can be a longer.
  3. Make sure to always try to add a heading.
  4. Character limits (including spaces):
    • 75 characters for the title (.title)

HTML structure

Overall HTML view of a definition list component:

HTML file (.html)
(other component(s))
div.definition-list
div.header (optional)
div.title
dl
dt (one or more)
(element(s))
dd (one or more)
(element(s))
(other component(s))

Nesting element might significantly affect the HTML markup.

Presets

Definition list presets:

PresetDescription
DefaultDefault preset.
Without headerTo be used whenever a list was provided without a title.
BasicA definition list can be nested inside other definition list. This cannot o further than 2 levels.

Presets are ready to use HTML structures.

Variations

Definition list variations:

VariationDescription
DefaultComposed of a title and a description list with three items.
Without headerComposed of a description list with three items.
BasicComposed of a title and a description list with two items, each of them with two other definition list element.

Most component variations are just samples of what can be achieved. Some components are flexible and expandable and this variations might not reflect all possible options.

Modifiers

Definition list classes:

ClassDescription
-top-arrowAdds a top arrow on the top of the title.
-zebraAffects each even row addind a greyish background.
-no-space-belowRemoves component margin bottom.

To enable a modifier, add it as a class to the outermost element of this component.

Embedding

The definition list component can be embedded inside other component:

ComponentDescription
AccordionDefinition lists embedded in accordions are used in publication lists. Whenever this happens it loses its first container.
SectionThe definition list can be embedded inside a section component. Whenever this happens it loses its first container.
main (HTML file)
(component, one of the above list)
div.definition-list (element)

Some components can be placed/embedded inside other components. Whenever this happens, they become elements of the respective parent component and they can no longer be called components.

Nesting

The definition list component can be used as a container of other components and/or elements (a nested component becomes an element of the parent component):

ElementDescription
AccordionAccordions can only be added inside definition list in the publication lists.
main (HTML file)
div.definition-list (component)
(Element)

Elements are component add-ons which can be placed directly inside the component allowing you to adapt the HTML structure to your needs. The correct markup can be checked in the element page.