Problem/Motivation

When the user is done with the consent popup the body classes are not updated to reflect that selection. A reload is required for the classes on the body to reflect the correct state. This makes handling the state change via CSS hard.

Steps to reproduce

- Load a page with consent popup
- Accept consent (either all or specific categories, it's the same)
- Check the classes on the body, they remain untouched from the page load

Proposed resolution

Update the classes on the body when status is changed

Remaining tasks

Send patch

User interface changes

None

API changes

None

Data model changes

None

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Michael Zetterberg fd. Lopez’s picture

Issue summary: View changes
svenryen’s picture

Status: Active » Needs review

Thanks for the patch. I'll have a look.

svenryen’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.