<div class="health-field health-field--icon-date">
<div class="health-field__label">Date published:</div>
<div class="health-field__item">23 May 2024</div>
</div>
Fields are supplementary content elements via the output of information/metedata.
Fields comprise of the following elements:
Label/value pairs are available in 2 layouts:
Icons can be output in 2 ways:
The HDS uses the Font Awesome icon set and applies these via the ::before
pseudo-element as dataURIs via an icon class, such as health-field--icon-DATE
(where DATE
is replaced by the appropriate class). This means that application doens’t require image references or additional HTML mark-up in the DOM.
Icon-oonly must not be used if:
See field groups for information about output multiple fields.