Declined cookies with top popup pull content out of the page

Created on 27 March 2023, over 1 year ago
Updated 22 October 2023, about 1 year ago

Problem/Motivation

In Drupal.eu_cookie_compliance.declineAction, when popup is on page top and not fixed, the behavior is buggy.
When the user accepts the cookies, the popup slides top then, at the moment it's removed from DOM, the body top margin is reset.
When the user declines the cookies, the popup slides top then the body top margin is not reset when the popup is hidden (display: none).
It causes the page header to be pulled out of the top of the page.

Proposed resolution

Reset body margin when we hide the popup on decline.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France duaelfr Montpellier, France

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

Comments & Activities

Production build 0.71.5 2024