Problem/Motivation
Olivero Theme sets every time the localStorage item Drupal.olivero.stickyHeaderState
. Storing data in user's browser (no matter if cookie, localStorage or sessionStorage) requires in many countries the user's consent - e.g. in the countries of the European Union.
Steps to reproduce
Install Drupal with Olivero and open the home page.
Proposed resolution
The aim should be to avoid data protection violations without the need for a consent manager. The use of localStorage is permitted if it is necessary for the provision of the requested service. It would therefore be a step in the right direction if the localStorage were only used after the toggle button has been pressed.
(Ideally, the use of localStorage should only be optional and become a theme setting, but the data protection officers are welcome to discuss this first).
Remaining tasks
Introduce a javascript function updateStickyHeaderStorage()
which only sets the expiration time if the item exists.
User interface changes
None.
Introduced terminology
None.
API changes
None.
Data model changes
None.
Release notes snippet
Avoid the unnecessary use of localStorage to comply with data protection regulations.