violet_rails icon indicating copy to clipboard operation
violet_rails copied to clipboard

Cookie consent banner and overlay obstructing admin

Open Ayon95 opened this issue 3 years ago • 0 comments
trafficstars

Describe the bug Cookie consent banner and overlay show up in admin. As a result, the admin pages cannot be interacted with unless cookies are accepted or rejected.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'App Settings'
  2. Enable 'Tracking' by checking it
  3. Hit 'Save'

Expected behavior The cookie consent banner and overlay should not show up on admin pages.

Screenshots Screen Shot 2022-09-09 at 2 17 42 PM

Additional context This becomes even more problematic if the cookie consent banner does not show up properly because some of its styles are defined in default layout stylesheet. The default layout does not get applied to admin pages. Notice in the screenshot above, the banner does not appear at all.

Possible workarounds

  • Open a page in Pages and accept or reject cookies there
  • Include all custom styles where the cookie consent markup is defined either as inline styles or embedded styles in <style> tags. This will ensure that the banner will show up properly and cookies can be accepted or rejected from admin.

Ayon95 avatar Sep 09 '22 18:09 Ayon95