Fix missing aria pressed

This commit is contained in:
Amauri CHAMPEAUX 2021-06-17 09:26:09 +02:00
parent f2dca5f6db
commit c0728e0d65
1 changed files with 3 additions and 0 deletions

View File

@ -1040,6 +1040,9 @@ var tarteaucitron = {
tarteaucitron.userInterface.addClass(key + 'Line', 'tarteaucitronIsDenied');
document.getElementById(key + 'Allowed').setAttribute('aria-pressed', 'false');
document.getElementById(key + 'Denied').setAttribute('aria-pressed', 'true');
} else {
document.getElementById(key + 'Allowed').setAttribute('aria-pressed', 'false');
document.getElementById(key + 'Denied').setAttribute('aria-pressed', 'false');
}
// check if all services are allowed