Improve the accecibility of the mobil menu. Also switch to SVG hamburger icon that is animated.
This commit is contained in:
parent
4e4ebc19ae
commit
7f91caaf5d
1 changed files with 91 additions and 39 deletions
|
|
@ -11,10 +11,7 @@
|
|||
cookiebanner.classList.add('js-cookieconsent-open');
|
||||
}
|
||||
|
||||
const cookie_buttons = Array.prototype.slice.call(
|
||||
document.querySelectorAll('button[data-consent]')
|
||||
);
|
||||
|
||||
const cookie_buttons = document.querySelectorAll('button[data-consent]');
|
||||
cookie_buttons.forEach(function (button) {
|
||||
button.addEventListener('click', function () {
|
||||
if (button.getAttribute('data-consent') === 'true') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue