v0.8.9

Component anatomy

This section names the visible areas of the component. The same names are used in the token documentation so each token can be mapped to the part of the UI it affects.

Containers

Component containers

The same areas when the content is a status view: the Screen and the Container do not change.

Containers in a status view

AreaDescription
ScreenOuter background of the embedded component.
ContainerCentral block that groups the header, statement list, and footer.
HeaderTop section with the title, optional description, and language selector.
Statement listCentral section where consent statements are rendered.
FooterBottom section with the validation alert and CTA button.

Component header

AreaDescription
HeaderTop area that groups the title, header description, and language selector.
TitleMain heading displayed at the top of the component.
Header descriptionOptional explanatory text displayed below the title.
Language selectorControl used to change the component language when multiple locales exist.
Language menuDropdown that displays the available language options.

Statements

Component statements

AreaDescription
Parent statementMain consent item. It can group related child statements.
Child statementConsent item nested under a parent statement.
Statement textMain text that identifies the consent statement.
Statement descriptionExplanatory text that provides more detail about the consent statement.
Expand buttonControl used to show or hide additional statement content.
Help iconIcon that opens or displays additional information about a statement.
Selection controlControl used to accept, reject, or enable a statement. It can be a switch or a checkbox.

Statement cards

Statement cards

AreaDescription
Statement cardVisual container that wraps a consent item in boxed mode. In flat mode, statements are not shown as cards.

Actions and feedback

Component actions and feedback

AreaDescription
Information DialogFloating panel that displays additional information about a consent item.
Validation alertMessage shown when the user must review or complete consent selections.
CTA buttonPrimary action button used to submit or save the current consent selection state.

Status views

The component replaces the statement list with a status view when the flow ends or cannot continue. This happens in six situations: four failures (load error, no connection, submit error and unsupported browser) and two informational ones (no pending consents and settings saved successfully).

With the show language selector option enabled, the Language selector is shown inside the Status header. Without the language selector, the status header is not shown.

Status views

The Status header only appears with the show language selector option enabled:

Header of a status view

AreaDescription
ContainerThe same central block as always. It keeps its background, border and radius when a status view is shown.
Status viewBlock that replaces the statement list when the flow ends or cannot continue.
Status headerTop band of the view. It only appears with the show language selector option enabled, which is all it holds.
Status iconCircular icon leading the view, identifying the kind of result.
Status titleHeadline summarising the result.
Status descriptionExplanatory text shown under the headline.
CTA buttonThe same primary button as in the Footer. It appears in the error views that offer a retry, with the same tokens.
Technical detailsCollapsible link that reveals the error code and reference. It appears in the load error and submit error views.