Cookie alert

Visitors of websites are informed about the legal requirements or privacy policy.

They have to agree to the cookie settings of websites to visit and interact with them.


Recommendations#

  • Give the user clear button labels to select the cookie settings.
  • If the Cookie alert is extended only one button is active. The other button changes to the disabled state.
  • Change the cookie settings regarding the legal requirements of your country.

Elements#

  • The cookie alert has a modular structure.

Collapsed#

  • It contains a text with a possible link to further infos.
  • It uses a link with icon to extend the cookie box.
  • It shows a button to confirm the cookie settings immediately.
 Types Preview
1. Headline
2. Legal information default text
3. Link to information on website
4. Link to open more cookie settings
5. Button to accept default settings
 cookie collapsed

Extended#

  • It uses a divider to separate itself from the content above.
  • It contains checkboxes for settings.
  • It shows the primary button in a disabled state.
  • It shows a secondary button to confirm and save the user's individual settings.
 Types Preview
6. Divider
7. Checkboxes for individual settings
8. Button to accept individual settings
cookie extended

Overall styling#

  • The headline has the text-style headline 5.
  • The text, link and checkboxes have the text-style small.
  • The line-height is set to default.
  • Text-color is gray-darker.
  • The links (with icon) follow the rules of our link description.
  • Background-color is white.
  • The cookie alert has rounded corners of 2px.
  • The buttons are positive-primary and positive-secondary style.
  • The divider has a height of 1px an comes in gray-lighter.
  • Overlay-color uses basic-black with a opacity of 72%.
  • The height depends on the content and the additional components shown.

complete cookie alert


Spacing & measurements#

  • The overall padding is 16px.
TypesAttributesPreview
Vertical spacingheadline to text: 8px
space to divider: 16px
space checkboxes: 8px
checkboxes to button: 16px
vertical spacing
 Alignment the link and button are aligned horizontally to each other link vertical spacing
 Horizontal spacing checkboxes 8px checkboxes vertical spacing

Position#

  • The cookie alert is placed in the center of the screen.
  • The overlay covers the complete website.
  • The user can only interact with the website after confirming the cookie settings.

Example with content#

  • Take a look at an example with real content for a better understanding.
  • There is always only one button active.
  • Always consult your legal office if the content is conform with the legal requirements of your country.

Example cookie alert


What can be modified?#

  • Override the text.
  • Change the status of the buttons and checkboxes.

Our workflow in Sketch#

  • Use the „Overrides“-function to edit the content or to change the status of the button or checkboxes.

Change log#

Changed#

  • Sketch: "Cookie alert" | Adjusted to new grid settings

Changed#

  • Sketch: "Cookie Alert" | Adapted component to new grid settings

Changed#

  • Doc: "Cookie alert" | Clean up the documentation for the right structure and sentence case

Changed#

  • "Extended Cookie alert" | Changed symbols: with layer-style settings

Added#

  • "Extended Cookie alert" | Added description: usage of button state

Changed#

  • "Extended Cookie alert" | Changed symbols: set button state to "disabled" to comply with cookie regulations

Removed#

  • "Simple cookie alert" | Removed symbols

3.4.0 Core & 3.4.0 Web - 2019-08-15#

Fixed#

  • lidl-theme Missing text-style in cookie alert symbol