<h2>Horizontal (fixed) group variant</h2>
<p>The horizontal (fixed) group looks the same across all devices and doesn't stack on mobile. A great space-saver for few fields but to be used judiciously.</p>
<h3>Horizontal (fixed) group of stacked fields</h3>
<div class="health-field-group health-field-group--horizontal-stubborn">
<div class="health-field">
<div class="health-field__label">Date published:</div>
<div class="health-field__item">23 May 2024</div>
</div>
<div class="health-field">
<div class="health-field__label">Duration:</div>
<div class="health-field__item">30 minutes</div>
</div>
<div class="health-field">
<div class="health-field__label">Type:</div>
<div class="health-field__item">News article</div>
</div>
</div>
<hr>
<h3>Horizontal (fixed) group of stacked (label with icon) fields</h3>
<div class="health-field-group health-field-group--horizontal-stubborn">
<div class="health-field health-field--icon health-field--icon-date">
<div class="health-field__label">Date published:</div>
<div class="health-field__item">23 May 2024</div>
</div>
<div class="health-field health-field--icon health-field--icon-duration">
<div class="health-field__label">Duration:</div>
<div class="health-field__item">30 minutes</div>
</div>
<div class="health-field health-field--icon health-field--icon-type">
<div class="health-field__label">Type:</div>
<div class="health-field__item">News article</div>
</div>
</div>
<hr>
<h3>Horizontal (fixed) group of inline fields</h3>
<div class="health-field-group health-field-group--horizontal-stubborn">
<div class="health-field health-field--inline">
<div class="health-field__label">Date published:</div>
<div class="health-field__item">23 May 2024</div>
</div>
<div class="health-field health-field--inline">
<div class="health-field__label">Duration:</div>
<div class="health-field__item">30 minutes</div>
</div>
<div class="health-field health-field--inline">
<div class="health-field__label">Type:</div>
<div class="health-field__item">News article</div>
</div>
</div>
<hr>
<h3>Horizontal (fixed) group of inline (label with icon) fields</h3>
<div class="health-field-group health-field-group--horizontal-stubborn">
<div class="health-field health-field--inline health-field--icon health-field--icon-date">
<div class="health-field__label">Date published:</div>
<div class="health-field__item">23 May 2024</div>
</div>
<div class="health-field health-field--inline health-field--icon health-field--icon-duration">
<div class="health-field__label">Duration:</div>
<div class="health-field__item">30 minutes</div>
</div>
<div class="health-field health-field--inline health-field--icon health-field--icon-type">
<div class="health-field__label">Type:</div>
<div class="health-field__item">News article</div>
</div>
</div>
<hr>
<h3>Horizontal (fixed) group of icon-only fields</h3>
<div class="health-field-group health-field-group--horizontal-stubborn">
<div class="health-field health-field--icon-only health-field--icon-date">
<div class="health-field__label">Date published:</div>
<div class="health-field__item">23 May 2024</div>
</div>
<div class="health-field health-field--icon-only health-field--icon-duration">
<div class="health-field__label">Duration:</div>
<div class="health-field__item">30 minutes</div>
</div>
<div class="health-field health-field--icon-only health-field--icon-type">
<div class="health-field__label">Type:</div>
<div class="health-field__item">News article</div>
</div>
</div>
Field groups are wrappers for multiple fields and determine their layout and repsonsive behaviour.
There are 2 (and a half) variants:
Field layouts (e.g. stacked/inline) or styles (e.g. label/icon-only) should not be mixed within a group.