Multi Select Dropdown Proof of Concept

This is a proof of concept for a multi-select dropdown list.

It comprises a conventional group of checkboxes inside a hide / reveal component that is built using <details> and <summary> elements. Both components have been used as specified in the GOV.UK Design System.

Design notes

Essential

Recommended

Implementations

Following content is displaced when dropdown is open

Choice of desserts
Select

This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown.

This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown.

This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown.

Following content is overlaid when dropdown is open

This design is identical except that the <div> element containing the checkboxes has the attribute "position: absolute", so the following content does not move when the dropdown is open.

Choice of fruit
Select

This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown.

This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown.

This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown. This is more content that follows the dropdown.