Преглед на файлове

Fix missing aria pressed

Amauri CHAMPEAUX преди 4 години
родител
ревизия
c0728e0d65
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      tarteaucitron.js

+ 3 - 0
tarteaucitron.js

@@ -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