violet_rails
violet_rails copied to clipboard
Cookie consent banner and overlay obstructing admin
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:
- Go to 'App Settings'
- Enable 'Tracking' by checking it
- Hit 'Save'
Expected behavior The cookie consent banner and overlay should not show up on admin pages.
Screenshots

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
Pagesand 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.