diff --git a/src/ol/control/Attribution.js b/src/ol/control/Attribution.js index b72620b60b..7d1ff8234a 100644 --- a/src/ol/control/Attribution.js +++ b/src/ol/control/Attribution.js @@ -147,7 +147,7 @@ class Attribution extends Control { */ this.toggleButton_ = document.createElement('button'); this.toggleButton_.setAttribute('type', 'button'); - this.toggleButton_.setAttribute('aria-expanded', String(false)); + this.toggleButton_.setAttribute('aria-expanded', String(!this.collapsed_)); this.toggleButton_.title = tipLabel; this.toggleButton_.appendChild(activeLabel);