diff --git a/assets/js/theme/design-system/notes.js b/assets/js/theme/design-system/notes.js index 1c80ea2f4db9c0466308bf3ec94dbb1bec22d286..b09a2566d7c6a544869ba5a18e44db6d21f6dd5d 100644 --- a/assets/js/theme/design-system/notes.js +++ b/assets/js/theme/design-system/notes.js @@ -27,6 +27,7 @@ class Note { this.active = true; this.note.classList.add('note--active'); this.content.removeAttribute('aria-hidden'); + this.call.setAttribute('aria-expanded', 'true'); this.definePosition(); this.a11yDisabling(); } @@ -35,6 +36,7 @@ class Note { this.active = false; this.content.setAttribute('aria-hidden', 'true'); this.note.classList.remove('note--active'); + this.call.setAttribute('aria-expanded', 'false'); this.removeA11yDisabling(); }