Remove overflow:hidden rule for body when popup is rendered

Created on 2 May 2023, over 1 year ago
Updated 9 May 2023, over 1 year ago

Problem/Motivation

The current solution doesn't work nicely with browser plugins that automatically remove all cookie banners on the web (plugins like this one https://chrome.google.com/webstore/detail/i-dont-care-about-cookies/fihn...).

Steps to reproduce

- Our cookie banner shows up and blocks scrolling of the website (by design)
- Some Chrome plugins can detect the cookie banner and automatically remove it
- These plugins don't change the CSS and the site is "stuck": the banner is gone, but you can't scroll.

Proposed resolution

The easiest solution is to just remove the "scroll blocking" (which is probably configured via CSS) since this is also better in terms of GDPR which Tina pointed out to me (according to some recent rulings/documentation). That way: people can just scroll the site with the cookie modal overlaying on top (fixed position).

Remaining tasks

Create MR that removes this line of CSS: https://git.drupalcode.org/project/eu_cookie_compliance_rocketship/-/blo...

User interface changes

The site will be scrollable under the cookie popup.

🐛 Bug report
Status

Fixed

Version

1.0

Component

User interface

Created by

🇷🇴Romania reszli Târgu Mureș

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024