Oh, thanks! Hadn't thought of anything like that :)
@mdekker said in New General Data Protection Regulation 2018-05-25:
Thanks @Viklemagi, I'll pass it on to @SnowyCat
If you want to add a translucent background to the page in order to focus on the cookie consent bar you can use either CSS or Javascript:
CSS:
css
[aria-label="cookieconsent"] {
outline: 9999px solid rgba(0, 0, 0 , 0.5);
}
Native JavaScript:
js
var consentBar = document.querySelector('[aria-label="cookieconsent"]');
if (consentBar) {
consentBar.style.outline = '9999px solid rgba(0, 0, 0, .5)';
}
jQuery:
js
$('[aria-label="cookieconsent"]').css('outline', '9999px solid rgba(0, 0, 0, .5)');